how function calls work in javascript code example
Example 1: how to call a function in JavaScript
// calling our function
displayGreeting();
Example 2: call function javascript
// Define your function
function sayHello(msg){
console.log("Hello, " + msg);
}
// Call it
sayHello("Norris");
// outputs:
// Hello, Norris