how to create an array of specific length in javascript

Solutions on MaxInterview for how to create an array of specific length in javascript by the best coders in the world

showing results for - "how to create an array of specific length in javascript"
Hanna
03 Jan 2020
1const array = new Array(3).fill(0)
2