create javascript array with no values
// This...
let arr = new Array(arrayLength)
// ...results in the same array as this
let arr = Array(arrayLength)
// This has exactly the same effect
let arr = []
arr.length = arrayLength
Are there any code examples left?
New code examples in category Javascript