+ 1
new() or not new() in javascript?
2 Answers
+ 6
New is a magic keyword for me. If used before a function, that function acts like a constructor and you get an instance of it.
+ 2
Im still using this word,even if I dont need it(it will create things I want without it,like new Array), but whatever,it keeps code a bit more clear to undestand.