A function groups instructions into a reusable action.
function showWelcome() {
console.log("Welcome");
}
showWelcome();
// Output:
// Welcomefunction showWelcome() { ... } prepares the function without running it.() declares no parameters.showWelcome() calls the function. Each call runs its body and displays Welcome.Complete showGreeting so calling it displays Hello from a function.