Skip to content

Commit 2893a25

Browse files
author
Peter F. Tumulty
committed
filled out two other sections
1 parent e33bdde commit 2893a25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is a simple demonstration on how to use ```map()``` and ```forEach()``` methods in javascript. and explaination of how they work, and a comparission between these two array methods.
44

5+
**This is a live website:** [https://ptums.github.io/using-javascript-map-foreach-method/](https://ptums.github.io/using-javascript-map-foreach-method/)
6+
57
## Motivation
68

79
When I first used [React.js](https://reactjs.org), 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 the ```forEach()``` method. 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.
@@ -10,6 +12,8 @@ This was confusing because I though these methods served the same purpose. I dec
1012

1113
## Build status
1214

15+
![active](https://www.repostatus.org/badges/latest/active.svg)
16+
1317
## Installation
1418

1519

0 commit comments

Comments
 (0)