Learn how to create and use functions in JavaScript.
- Clone this repository to your local machine.
- Create a file named
functions.js
.
- Define a function
sayHello
that takes a name as a parameter and returns a greeting message. Then call this function with 'Alice' and 'Bob', logging the return value each time. - Create a function that takes two numbers as parameters and returns their sum. Test this function with different sets of numbers and log the results.
Commit and push your functions.js
file to this repository. It should contain the functions and test calls as described in the tasks.