+ 3
Parameters
Can parameters only be used inside a function?
2 Answers
+ 2
function param(string) {
alert(string);
}
// Outside the function
param ("Some text");
0
parameters are only for function and classes in js....
parameter are basically variables for functions..they can be used inside of functions only..
or if a inner function is made, inside of that function, which is inside the 1st function...
look up variable scopes(function, block, global, and local)