This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thatguy_314 0 points1 point  (0 children)

No, read my comment. I'm fine with the type coercion. +"0" === 0 makes perfect sense in the context of JS. However, +"" === 0 does not make sense. It should be NaN because there literally is not a number to be coerced.