parseInt 2
2022年5月1日小于 1 分钟
parseInt 2
Question
What does the code snippet to the right output by console.log
?
Snippet
console.log(parseInt(0.00001))
console.log(parseInt(0.000001))
console.log(parseInt(0.0000001))
console.log(parseInt("0x12"))
console.log(parseInt("1e2"))