HOW TO HAVE JAVASCRIP[T RANGE code example
Example: range command in JS
function range(start, end) {
return (new Array(end - start + 1)).fill(undefined).map((_, i) => i + start);
}
function range(start, end) {
return (new Array(end - start + 1)).fill(undefined).map((_, i) => i + start);
}