Skip to content

Fork, Commit, Merge - Easy Issue 2 (JavaScript) #6332

@nikohoffren

Description

@nikohoffren

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/easy

Run the program:

node even-numbers.js

If 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!

Also, kindly give this project a star to enhance its visibility for new developers!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions