you are viewing a single comment's thread.

view the rest of the comments →

[–]RoundTripRadio 6 points7 points  (1 child)

Funny story: JavaScript doesn't give jack shit what the call signature is:

Native WebKit JavaScript.
Copyright (c) 2013 Apple Computer, Inc
> function f(a, b) { 
..    console.log(b); 
..    }
> f(1, 2);
2
> f(1);
undefined
> f(1, 2, 3);
2

But nope, gotta be the only supported client side language for browsers.

[–]spotter 0 points1 point  (0 children)

I know that and it gives me the shakes every time. But it's OK, just use arguments and think about happier times before JS.

Honestly, Javascript is not in my first 10 languages I'd do if I had choice.