The length property shows how many elements:
let items = ["a", "b", "c"]
console.log(items.length) // 3
items.length = 2 // Truncates!
console.log(items) // ["a", "b"]
items.length = 5
console.log(items) // ["a", "b", empty × 3]
Setting length can truncate or expand arrays. This is rarely used. Prefer methods like push() and pop() for adding/removing.