javascript array length


var data_array = [1, 2, 3, 4, 5];

var array_length = data_array.length;

console.log(array_length); // returns '5'

Leave a Comment