Generate an array with a range of numbers.
range(0, 5); // [0, 1, 2, 3, 4, 5]range(0, 10, 2); // [0, 2, 4, 6, 8, 10] Copy
range(0, 5); // [0, 1, 2, 3, 4, 5]range(0, 10, 2); // [0, 2, 4, 6, 8, 10]
the starting value
the end value
the steps to move
number range
Generate an array with a range of numbers.
Example