combien all lement array js code example
Example 1: MDN array length
const clothing = ['shoes', 'shirts', 'socks', 'sweaters'];
console.log(clothing.length);
// expected output: 4
Example 2: tableau javascript
var first = fruits[0];
// Apple
var last = fruits[fruits.length - 1];
// Banana