06 - 02 - Iteration in JavaScript
Closed this issue · 2 comments
Agent-Banks commented
Objectives
After completing this assignment, you should be able to:
- Demonstrate understanding of iteration/enumeration
Instructions
- Fork this repository to your own account.
- Change into your projects directory:
- Clone your repository:
hub clone js-iteration
- Change into your project's directory:
cd js-iteration
- Install the dependencies:
yarn install
(or justyarn
for short) - Open in your editor]
- Start the test runner:
yarn test
- Open
src/functions.test.js
and work on functions until tests pass. - Commit and push your work to GitHub.
- Turn in the URL to your GitHub repo.
Explorer Mode
- All tests passing
Epic Mode
- Using the
forEach
looping method and no other looping or enumeration helper, write your own version of the following methods, except name yours_map
,
_filter
, etc.map
filter
reduce
every
some
- Write some example usage of your new methods to demonstrate that they work
Additional Resources
Reference the documentation on DevDocs to find what kind of helpful functions
might already be in JavaScript.
Agent-Banks commented