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