In PHP, you can do...
range(1, 3); // Array(1, 2, 3) range(\"A\", \"C\"); // Array(\"A\", \"B\", \"C\")
That is, there is a function that l
You can use following one-liner to keep things short and simple
var start = 4; var end = 20; console.log(Array(end - start + 1).fill(start).map((x, y) => x + y));