re: What is the most confusing 💡thing in JavaScript? VIEW POST

VIEW FULL DISCUSSION

I saw this on reddit, don't know if it's true but it made me laugh

Rddit_img

It is true. Just tested it myself:

JavaScript parseInt.

Paste this in the console and see it for yourself:

console.log(parseInt(0.000001))
console.log(parseInt(0.0000001))
console.log(parseInt(0.000006))
console.log(parseInt(0.0000006))
code of conduct - report abuse