With some basic JavaScript principles we can now expand our skills out even further by exploring array methods like: .forEach(), .map(), .reduce(), and .filter(). We can also look at how closures have a large impact on how we write JavaScript.
- Fork/Clone this repository.
- Complete all the exercises as described inside each assignment file.
- Use
console.log()statements to check to see if your code does what it is supposed to do. - To test your
consolestatements you can runnode /assignments/<fileName>and see what prints in your terminal. You can also use an online tool likeJSBin,REPL.it,JSFiddle, or even yourChrome developer console. - Once you finish the exercises in each file, commit your code, and push it to your fork.
Use .forEach(), .map(), .filter(), and .reduce()` to loop over an array with 50 objects in it. The array-methods.js file contains several challenges built around a fund rasising 5k fun run event.
- Read the instructions found within the file carefully to finish the challenges.
- The last challenge is to come up with 3 problems to solve and then build a solution for them using any of the array methods listed above.
- Share one of your favorite problem/solutions in your team meeting.
- Complete each challenge presented before moving on to closure.
The closure.js assignment showcases how variables can be used outside of functions to store state using closure.
- Complete each challenge.