js get length of list code example
Example: length of list in javascript
var nums = new Array();
nums[0] = 1;
nums[1] = 2;
print(nums.length); // displays 2
var nums = new Array();
nums[0] = 1;
nums[1] = 2;
print(nums.length); // displays 2