Closed killagu closed 7 years ago
in parseInt is a bad guy section
parseInt('08'); // 0
but i have executed the code in chrome and node.js , the result is 8
Since ES 2015 parseInt's second argument defaults to 10. In other words it will return 0 in an older browser.
in parseInt is a bad guy section
but i have executed the code in chrome and node.js , the result is 8