length

return count of entries

 

let colors = ["red", "blue", "yellow"];
alert(colors.length); // 3