Javascript Array Question 12

Introduction

What is the output of the following code?


let fruitArray = ['strawberry','apple','orange','banana','lime'];
console.log(fruitArray.sort()); 


apple,banana,lime,orange,strawberry



PreviousNext

Related