DEV Community

Discussion on: JavaScript is a little weird!!

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Incrementing to a boolean isn't a normal thing to do in the first place; but the exact result depends on Boolean implementation.

Otherwise, a lot of things depend on the parser, e.g. what browser are you using; if the standard isn't written.