Put this function in your Javascript code, and you should be able to call range() , as in Python (but it only works for numbers):
function range(start, end) { var array = new Array(); for(var i = start; i < end; i++) { array.push(i); } return array; }
Alex w
source share