Contributors: Karah, Zanda and Purrity
For Exercise 6 - Function basics: We created:
-
A function called greet that takes a name parameter.
-
Made the greet function return "Hello, [name]!"
-
Created a function called add that takes two parameters.
-
Made the add function return the sum of both parameters.
-
Called both functions and stored their results in variables.
-
Printed the results to the console.
node functions.js