This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The length property returns the length of an array:
const fruits = ["Banana", "Orange", "Apple", "Mango"]; let size = fruits.length; document.getElementById("demo").innerHTML = size;
The
property of an array returns the length of an array (the number of array elements).The
property is always one more than the highest array index count.