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
Developer Resources, Tips, Tricks, Tutorials and Much more.
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