You can (and sometimes will) run into instances of this without noticing, because while you won't explicitly write
true++
x = someFunction() x++
Anyone who worked with a sufficiently large JS codebase ran into one of these cases and got unexpected results at some point due to this.
You can (and sometimes will) run into instances of this without noticing, because while you won't explicitly write
you might do something like not realising that someFunction() might return a boolean under some circumstances.Anyone who worked with a sufficiently large JS codebase ran into one of these cases and got unexpected results at some point due to this.