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.
Please follow the steps below to complete the task:
- Fork this repository to your local machine (please ensure you have the necessary access rights to fork it; if not, notify us).
- Open the
index.jsfile. - Implement the
getPositiveSumfunction using ES6 syntax and comment out the old code. - Test the function using the provided example input and verify that it returns the correct output.
- Commit your changes (please use clear and descriptive commit messages) and push them.
- Create a pull request to the main repository, using a clear and descriptive title for the pull request.
- Write comments explaining the differences between the two sets of code.
- 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.