Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to find length of array js

var array = [1, 2, 3, 4, 5]; // array of size 5

var size = array.length; // add.length to get size

console.log('size : '+size);
//output: size : 5
 
PREVIOUS NEXT
Tagged: #find #length #array #js
ADD COMMENT
Topic
Name
1+9 =