Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mypalmike
· 5y ago · 0 comments
My favorite recent discovery is calling a js function with too many or too few parameters. It'll just go ahead and do it.
Comments
[–]
phyrex
5y ago
There’s an implicit “arguments” function argument through which you can access the extra parameters. It’s JSs way of function overloading
[–]
tonyedgecombe
5y ago
Which looks like an array but isn't.
[–]
phyrex
5y ago
There’s a lot of that kind of thing in JS, isn’t there? :(