Mariamsadiq / positive-numbers-assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Positive Numbers Assignment

Dear students,

This repository contains a JavaScript function that calculates the sum of all positive numbers in an array using Object-Oriented Programming (OOP) in JavaScript. Your task is to solve it using functional JavaScript and make a pull request.

Task Instructions

Please follow the steps below to complete the task:

  1. Fork this repository to your local machine (please ensure you have the necessary access rights to fork it; if not, notify us).
  2. Open the index.js file.
  3. Implement the getPositiveSum function using ES6 syntax and comment out the old code.
  4. Test the function using the provided example input and verify that it returns the correct output.
  5. Commit your changes (please use clear and descriptive commit messages) and push them.
  6. Create a pull request to the main repository, using a clear and descriptive title for the pull request.

Extra Bonuses

  1. Write comments explaining the differences between the two sets of code.
  2. Use clear and intuitive naming for your commits and pull requests.

Please feel free to reach out if you have any questions or need further assistance.

About


Languages

Language:JavaScript 100.0%