0
What's the difference betn parameters & variables used in a function?
Are parameters variables described within 1st bracket of functions?
4 ответов
+ 1
Parameters are limits, variables are values that JS is assigning a datatype to behind the scenes.
+ 1
same
0
they are the same
0
examples: var x = 5, y=6; //x & y both r variables which has value of 5, 6.
myFun(5, y); // 5, y both r parameters. it can be value or variable.
function myFun(a, b){} //here a, b both r arguments where a=5 & b=y=6.