Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

count array in javascript

const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.length //return the length of an array, in this case it will be '4'
 
PREVIOUS NEXT
Tagged: #count #array #javascript
ADD COMMENT
Topic
Name
3+6 =