+ 1

What is a parameter

What is a parameter

7th Mar 2019, 5:13 AM
OreoDubs
3 Answers
+ 2
A parameter id this function a(parameter){ alert(parameter**2) }(2) //output :4
7th Mar 2019, 6:24 AM
The Happy Coffe Cup
The Happy Coffe Cup - avatar
+ 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.
7th Mar 2019, 8:26 AM
HonFu
HonFu - avatar
+ 1
oh thx
11th Mar 2019, 10:50 PM
OreoDubs