how to create array of first n natural numbers in js code example Example: js array of 1 to n [...Array(10).keys()]