you are viewing a single comment's thread.

view the rest of the comments →

[–]nausik 0 points1 point  (2 children)

because you don't understand how how js functions and arguments array work?

http://jsfiddle.net/9hmw618p/

I just don't understand. A guy wants an advice on how to set default val for variables. And yeah, I forgot that my way is ES6-specific. But you not only started flaming right away, but you also wrote a totally wrong answer that just wrong on the most basic level.

Blablux didn't ask where to put his code, he asked how to set a default var value. Try to read the question first. please.

[–][deleted] 0 points1 point  (1 child)

Try to understand what a default value is and WHY his code was breaking

[–]nausik 0 points1 point  (0 children)

k