parseInt problem #191
Answered
by
DimitarNestorov
killagu
asked this question in
WTF Questions
-
in parseInt is a bad guy section
but i have executed the code in chrome and node.js , the result is 8 |
Beta Was this translation helpful? Give feedback.
Answered by
DimitarNestorov
Aug 5, 2017
Replies: 1 comment
-
Since ES 2015 parseInt's second argument defaults to 10. In other words it will return 0 in an older browser. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
denysdovhan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since ES 2015 parseInt's second argument defaults to 10. In other words it will return 0 in an older browser.