Can anyone tell me the topic "calling of function" with a simple program please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone tell me the topic "calling of function" with a simple program please

24th Aug 2017, 12:20 PM
Bhupendra Dangwal
Bhupendra Dangwal - avatar
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.";
24th Aug 2017, 12:39 PM
GAWEN STEASY
GAWEN STEASY - avatar
0
thanks mr.GAWEN STEASY
24th Aug 2017, 1:53 PM
Bhupendra Dangwal
Bhupendra Dangwal - avatar
0
oohhh im so sorry
24th Aug 2017, 4:23 PM
Bhupendra Dangwal
Bhupendra Dangwal - avatar
0
thanks ms.gawen steasy
24th Aug 2017, 4:24 PM
Bhupendra Dangwal
Bhupendra Dangwal - avatar
0
are you a engg. student
24th Aug 2017, 4:24 PM
Bhupendra Dangwal
Bhupendra Dangwal - avatar