I wrote this function :
function range(start,stop,step) {
var array =[];
for ( var i = start; i <= stop; i += step ){
array.push(i);
}
return array;
}
var m = range(1,10);
console.log("length = " + m.length);
And it returns one.
Since, range returns an array , should't it be the array length?