I am coming from python and trying to learn JavaScript. I noticed that when, by accident, I tried to call a function with the wrong number of arguments, it didn't raised an error and just returned Nan
.
What's the explanation for this behavior?
EDIT: Get warning when passing too few arguments to a javascript function
This is exaclty what i was looking for, thank you @Code-Apprentice