Commit aa43bb2
[guide] add explanation about why to use radix when using parseInt
I added an explanation at [22.3](https://github.com/airbnb/javascript/blob/master/README.md#coercion--numbers) why to use radix once parseInt, this explanation has been taken from [Mozilla's docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#Octal_interpretations_with_no_radix).
I think it's not clear without an explanation since people can think that it's obvious that string will be parsed to 10 base number, but it's not always the case.1 parent 82170f9 commit aa43bb2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3166 | 3166 | | |
3167 | 3167 | | |
3168 | 3168 | | |
| 3169 | + | |
| 3170 | + | |
3169 | 3171 | | |
3170 | 3172 | | |
3171 | 3173 | | |
| |||
0 commit comments