0

In the following section of the tutorial. I see array's push method has been used to concatenate string. http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-selecting-files-input

Example:

x = []
x.push('a','b', 'c')
x.join('') //abc

I found it interesting. But is it a better practice than the usual string concatenation?

Sorter
  • 9,704
  • 6
  • 64
  • 74

0 Answers0