Javascript Flashcards

Memorise common CS tasks in JS

1
Q

Can you initialise an empty Array of length n in Javascript?

If yes, how?

A

Yes

new Array(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly