Starter Code

This repository contains the starter code for your JavaScript assignment.

Instructions

  • Clone the repository to your local machine.
  • Complete the functions in index.js.
  • Run the file using Node.js to test the functions.

Functions

  1. add(a, b): Returns the sum of a and b.
  2. subtract(a, b): Returns the difference between a and b.
  3. multiply(a, b): Returns the product of a and b.
  4. divide(a, b): Returns the quotient of a and b. Handles division by zero.

Example Usage

node index.js