Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 7 - Basic Array Operations

7.1 Length

JavaScript's length property returns the number of elements in the array. Have a look at the following example,

let fruits = ['Apple', 'Banana', 'Orange'];
console.log(fruits.length);