how to get length of given array in methos code example Example: get length of array // In Javascript var x = [1,2,3]; console.log(x.length);