function range(start, end, step) {
let arr = [];
for(let i=start; i < end; i++){
if(i%step==0){arr.push(i)}
}
return arr;
}
let arr = range(0, 60, 5);
console.log(arr); // [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ]
function range(start, end, step) {
let arr = [];
for(let i=start; i < end; i++){
if(i%step==0){arr.push(i)}
}
return arr;
}
let arr = range(0, 60, 5);
console.log(arr); // [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ]