how to create 1 to 100 number array code example
Example 1: generate numbers from 1 to 100 to array
var foo = new Array(45); // create an empty array with length 45
Example 2: generate numbers from 1 to 100 to array
Array.from({length: 5}, (v, k) => k+1);
// [1,2,3,4,5]