Length

Advertisement

With the help of length property we’ll get the array lenght.

E.g.

let a = [1, 2, 3];

In the variable a there are 3 items.

To get the count of this array we’ll use:

a.length // Output: 3

Leave a Reply