Greeter Function

An introduction to making your own functions


Make a function which accepts a single argument - a person's name - and uses this name to greet them by printing to the console.

For example, I might expect to use the function like this:

greetByName('Cameron Pavey');
Hello Cameron Pavey, how are you today?


If the name provided is YOUR name, make it give you a special greeting

Last updated