Foundations
Declare and Call a Function
Declare and Call a Function
A function stores a block of code under a name. The code inside does not run until the function is called.
Your task: Declare showWelcome so it logs a welcome message. Then call the function.
Prerequisites
- variables
- strings
Tests
- showWelcome is a function
- calling the function logs a welcome message
- showWelcome is called