+ 1
What is a parameter
What is a parameter
3 ответов
+ 2
A parameter id this
function a(parameter){
alert(parameter**2)
}(2)
//output :4
+ 1
A parameter is the variable a function holds prepared for taking up an argument later.
function f(x) {
// code doing stuff with x
}
When you later call the function, for example like:
f(5);
... 5 is the argument for the parameter x.
+ 1
oh thx