Advantages of using [] over new Array() in JavaScript

后端 未结 7 628
轻奢々
轻奢々 2020-12-05 10:49

What are the advantages of using

var foo = []; 

over using

var bar = new Array();

i\'ve been told to use

相关标签:
7条回答
  • 2020-12-05 11:39

    It scores you less symbols in code golf.

    0 讨论(0)
提交回复
热议问题