Re:Node.js Foundation and JavaScript Foundation Announce Int...
by gnfurlong on Thursday October 04, 2018 @09:07PM
(#18144940)
Passing the "wrong" number of arguments isn't a syntax error in JavaScript.
If you pass fewer arguments than declared parameters, the rest are implicitly undefined. The variations you were seeing probably just came down to how the invoked function handled that undefined value. I can still understand how inconsistency in behavior there might be confusing.
It was frustrating enough to turn me off using languages that don't have compile time type checking.