length of a list js 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