This is the best statement in JavaScript to create a new empty array named paints. True or False? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

This is the best statement in JavaScript to create a new empty array named paints. True or False?

var paints = new Array() ;

11th Dec 2020, 2:49 PM
Salim Mohammad Elsadi
Salim Mohammad Elsadi - avatar
1 Resposta
+ 1
no you shouldn't use var keyword you should use let keyword instead Also let paints = []; is better
11th Dec 2020, 3:02 PM
Gordon
Gordon - avatar