Like strings, arrays have a length
property.
const letters = ['a', 'b', 'c', 'd'];
console.log(letters.length);
const numbers = [1, 2, 3, 4, 5, 6];
console.log(numbers.length);
Like strings, arrays have a length
property.
const letters = ['a', 'b', 'c', 'd'];
console.log(letters.length);
const numbers = [1, 2, 3, 4, 5, 6];
console.log(numbers.length);
Introduction
JavaScript Basics
Numbers
Strings
Logic
Variables
Loops
Objects
Arrays
Going Further