Home > AI > Uncategorized

Acces element

Example : length

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

Example: access by index

const fruits = ["Apple", "Pear", "Banana"];
let first = fruits[0];
console.log(first);
Related posts:

Leave a Reply