Skip to content

Comment on Stupid Languagesparent

Comments

That's how JS works. You can pass as many extra parameters as you want (they get discarded) and you can also omit as many parameters as you want (it's like passing undefined).

The array-like `arguments` object will always reflect what was actually passed to the function though.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.