Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 697 Bytes

File metadata and controls

16 lines (11 loc) · 697 Bytes

JavaScript Functions Practice

Objective

Learn how to create and use functions in JavaScript.

Instructions

  1. Clone this repository to your local machine.
  2. Create a file named functions.js.

Tasks

  1. 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.
  2. 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.

Submission

Commit and push your functions.js file to this repository. It should contain the functions and test calls as described in the tasks.