Assume –
function noname(a, b) {
//code
}
and I give –
noname(4,5,6,7);
What will happen then?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The additional parameters will simply get ignored.
They will however be available as part of the
argumentspseudo-array, e.g. asarguments[2],arguments[3].If you give fewer variables than are required then the missing ones will be
undefined.