Closures, Callbacks and Array Methods

This challenge focuses on closures, callbacks and array methods.

You are encouraged to use the MDN website as well as Google, to figure things out.

Use Google effectively! For example, let's say you want to learn more about the reduce array method. Here are some Google searches you could try:

  mdn array reduce
  array.prototype.reduce
  reduce site:mozilla.org
  javascript reduce site:stackoverflow.com

Commit often! Plan to commit & push every time you get a new test passing. This makes it SO much easier to figure out "what broke my code", and helps your TL keep track of how you're doing.

If you run into trouble while coding, fight the good fight for 20 minutes and then get on the help channel. Remember to formulate your help request in a professional manner - like you would at the job - by including error messages, screenshots, and any other pertinent information about the problem, as well as what things you have attempted already while trying to solve it.

Index

Instructions

Find the file index.js and complete the tasks until your tests are passing. One of the tests corresponds to a stretch task! Attempt the stretch task only after completing all other tasks.

Get Started

Using VSCode and a Command Line:
  1. Fork repo and add TL as collaborator on Github
  2. Clone your fork (not Lambda's repo by mistake!)
  3. cd into your newly cloned repository
  4. Create a new branch by typing git checkout -b <firstName-lastName>
  5. Install dependencies by typing npm install
  6. Run tests by typing npm run test:watch
  7. Work on your branch, push commits and create PR as usual

instructions screenshot