4 ms·
My favorite recent discovery is calling a js function with too many or too few parameters. It'll just go ahead and do it.
by mypalmike 5y ago
My favorite recent discovery is calling a js function with too many or too few parameters. It'll just go ahead and do it.
- phyrex 5y agoThere’s an implicit “arguments” function argument through which you can access the extra parameters. It’s JSs way of function overloading
- tonyedgecombe 5y agoWhich looks like an array but isn't.
- phyrex 5y agoThere’s a lot of that kind of thing in JS, isn’t there? :(