Skip to content

10-4-pursuit/01-03-javascript-functions-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published