DEV Community

Discussion on: TIPS AND TRICKS FOR JAVASCRIPT BEGINNERS

Collapse
 
viniciusrio profile image
Vinicius Rio

This is very useful. I think that in two cases beginners may prefer the use of "new". It is more descriptive, as in the example: const items = new Array (), although '[]' says the table by typing less. Great tips!

Collapse
 
anilloutombam profile image
Anil Loutombam • Edited

Yes, beginners do prefer, in fact I was using the same, a few years back.