You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Function Definition: How to define a function, including its name and parameters.*/functionsayHello(){console.log("1");console.log("Hello, World!");}/*Parameters and Arguments: The difference between parameters (variables in the function definition) and arguments (values passed to the function).*/functionwhosOnTheWebsite(name){if(name){returnname;}else{return"we have no name";}}/*Function Body: The code block where the function's operations are performed.Return Statement: How a function returns a value.Calling (invoking) the Function: How to execute the function with specific arguments.*//// invoke/call functions here// sayHello();// console.log(sayHelloWithName());// console.log(sayHelloWithName("Fellow"));letnewName=whosOnTheWebsite("Fellow");console.log(newName);