Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Declare a Function

A function gives a reusable action a name. Its instructions are placed inside the function body's braces.

Example

function showWelcome() { console.log("Welcome"); } showWelcome();

The final line calls the function and runs its body.

Your task

Complete showGreeting so calling it displays Hello from a function.