What does it mean when it says parameters?


#1

Continuing the discussion from And bug:

it has been a while and i can't remember

#2

Parameters are what are inside the parenthesis. ie ( , )


#3

thought so, just making sure :slight_smile: :wink:


#4

The parameters are the variables that stand in for the arguments in the function definition.

var myfunc = function(a, b) {

};

console.log(myfunc(6, 7));

a and b are the parameters. They are locally defined variables that receive the values 6 and 7 that are the arguments. The order of the arguments determines which value will be assigned to each parameter variable.


#5

ok i think i understand


#6

thanks mtf :slight_smile: :wink:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.