0
How do you call(run) a function in JavaScript after you have defined the function?
What is the syntax for calling(running) a function in JavaScript after you have defined the function?
3 Antworten
+ 7
function myFunc() {
// your code
}
myFunc() ;
^ call is this way
+ 2
A function without any parameters can be called as functionName();
and a function with parameters can be called as functionName(param1, param2) depending on the number of parameters you have used while defining a function.
0
thanks!