function range(start,end){
let range = [];
for( i = start; i <= end; i ++){
range.push(i);
}
}
console.log(range(1, 10))
function range(start, end) {
const arr = [];
for (let i = start; i <= end; i++) {
arr.push(i);
}
return arr;
}
console.log(range(1, 10));