We are used to create arrays with loop.
A better way to create a long array with around 10,000,000 entries is to use the fill method which is fast and reliable.
Var a = new Array(10000000);
Fill can take two extra parameters as well.
a.fill(“satya”, 0, 100);
this will fill the array starting from 0th index till 100th index.