DEV Community

Discussion on: 5 JavaScript "tips" that might bite you back.

Collapse
 
chrdek profile image
chrdek

Great, thanks for pointing that out. Aside from that, it is an alternative for the specific example using integer casting.

Thread Thread
 
paulsmithkc profile image
Paul Smith

You missed the whole point of this article. Which that you should not be writing code that way in the first place. Nor should you be suggesting this buggy code to anybody else.