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 Respuesta
+ 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