javascript generate range from two numbers code example
Example: javascript create an array of range between two numbers
function range(start, end) {
const range = [...Array(max - min + 1).keys()].map(i => i + min);
var result = range(9, 18); // [9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
console.log(result);