-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Fork, Commit, Merge - Easy Issue 2 (JavaScript)
Return a new array containing all even numbers using a .filter() method
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!
Issue created by Alshay1833.
How to get started
Open the tasks/javascript/easy directory from the root of your project.
Then open the even-numbers.js file and start implementing your solution!
Description
In this task, you have to return a new array containing all even numbers using a .filter() method.
Expected output
[2, 4, 6, 8, 10]How to run
Navigate to the correct directory:
cd tasks/javascript/easyRun the program:
node even-numbers.jsIf you see the correct output in the console, you are ready to make a pull request!
Check out README.md for more instructions and how to make a pull request.
Feel free to ask any questions here if you have some problems!