A function gives a reusable action a name. Its instructions are placed inside the function body's braces.
function showWelcome() {
console.log("Welcome");
}
showWelcome();The final line calls the function and runs its body.
Complete showGreeting so calling it displays Hello from a function.