From e24970d66b1713ff7af921081f73f2da17888e4d Mon Sep 17 00:00:00 2001 From: Scott Fletcher Date: Thu, 8 Jan 2015 22:03:47 -0800 Subject: [PATCH] Update README.md correcting a typo --- array_map_parseint/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array_map_parseint/README.md b/array_map_parseint/README.md index a3d2668..453e953 100644 --- a/array_map_parseint/README.md +++ b/array_map_parseint/README.md @@ -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 @@ -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 ); ``` ---- \ No newline at end of file +---