How to fill an array in JavaScript with initial values
You will come across instances where you want to have an array with predefined values so that you can iterate over them. The very obvious way will be to create a for loop and initialize an array as shown below:
let array = []
for (let index = 0; ind...
codingdeft.hashnode.dev3 min read