0
Can anyone tell me the topic "calling of function" with a simple program please
5 Answers
+ 2
You call the function by typing its name and putting a value in parentheses. This value is sent to the function's parameter.
e.g.
var firstFunction = function(firstParameter) { console.log("Print the " + firstParameter; } firstFunction("string as it's shown.");
In this example the function's name is firstFunction
The parameter's name is firstParameter
We call the function firstFunction("string as it's shown.");
This sends the string "string as it's shown." to the function and the parameter firstParameter takes it's value.
Now the code inside the function actual reads
"Print the " + "string as it's shown.";
0
thanks mr.GAWEN STEASY
0
oohhh im so sorry
0
thanks ms.gawen steasy
0
are you a engg. student