Joined June 2016
·

sh4dow

HTML5 Developer at Greentube
·
Vienna, Austria
·

According to the following, using the "innerText" property does not seem like a good idea (unless things have changed a lot in the past 3 years):
http://stackoverflow.com/a/19032002/5040168

Posted to Why never use new Array in Javascript over 1 year ago

I would argue exactly almost the opposite as what this article suggests.

In all programming languages I can think of, [...] denotes creating an array of a certain size. So if you don't think about the content of this article too much, you might think "Oh OK, I'll never use 'new Array()'" and write something like:
[10].join('a')
... thinking this will create a string of 10 a's.

So instead of "Never use 'new Array()'", I would suggest "ALWAYS use 'new Array()' if you want to create an array with a specific size".

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills