To get a range of numbers in JavaScript, initialize an array by spreading the keys of another array into it. You can shift the range up or down, or do things like have it contain only even numbers. const range = [...Array(5).keys()] // β [0, 1, 2, 3,...
Markdown supported Β· ββ΅ to post
No responses yet.