how to use range method in javascript code example Example: range javascript [...Array(5).keys()]; => [0, 1, 2, 3, 4]