Skip to content

Commit

Permalink
Merge pull request tcorral#16 from sfletche/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
tcorral committed Jan 9, 2015
2 parents 0254598 + e24970d commit 942e128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array_map_parseint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Array.prototype.map has three arguments that pass to the callback we set as argu
When we check the specifications of parseInt we can see that parseInt could receive two arguments.
The former is the string to be parsed and the latter is the ratio to convert the value.

When we execute the previous code, this is that it's executed when we run the Snippet 1 code:
When we run Snippet 1 code, the following is actually executed:
* parseInt(1, 0) => 1
* parseInt(10, 1) => NaN
* parseInt(100, 2) => 4
Expand All @@ -60,4 +60,4 @@ var result = ['1','10','100','1000','10000', '100000', '1000000'].map(Number)
```js
assert(result[0] === 1 && result[1] === 10 && result[2] === 100 && result[3] === 1000 && result[4] === 10000 && result[5] === 100000 && result[6] === 1000000 );
```
---
---

0 comments on commit 942e128

Please sign in to comment.