// get the length of an array
// define array
let numbers = [10, 20, 30, 40, 50]
let words = ['I', 'Love', 'Javascript']
// call the .length property ( DO NOT USE () after it)
number.length // 5
words.length // 3
//The length property provides an easy way to append a new element to an array:
const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits[fruits.length] = "Kiwi"
// >> ["Banana", "Orange", "Apple", "Mango" , "Kiwi"]
//if you find this answer is useful ,
//upvote ⇑⇑ , so the others can benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)