This site is a simple demonstration on how to use map()
and forEach()
methods in javascript.
When I first used React.js, I discovered the javascript method map()
to iterate over data in JSX. Having some previous experience writing functional code in JavaScript I already knew about forEach()
. At first glance, I thought they served the same purpose, but when I tried using forEach()
in JSX it spit out a bunch of errors.
This set me on a journey to take a deep dive into understanding the nature of these methods. This repository is a collection of my experiments and notes, which I've turned into a github page. I also published an article of my discoveries on Medium.com The power of the map method.
Now, I am looking for recent bootcamp grads, bootcamp students, or any coders who are looking to up their coding skills and learn more about javascript make a fun educational website based on this content.
git clone https://github.com/ptums/using-javascript-map-foreach-method.git
Fork this repo, open the repository in your favorite code editor and get hacking!
- Fork it
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar'). Please use Udacity Git Commit Message Style Guide when writing commit messages.
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request