using range() function in js code example Example: range javascript [...Array(5).keys()]; => [0, 1, 2, 3, 4]