Double-tilde (~~x) technique in JavaScript and why you should be careful about using it

Watch What is it? The ~ (tilde) operator in JavaScript is the often-overlooked bit-wise not. For integers, it is the equivalent to… Read more

Similar

Learning Advanced JavaScript

Double-click the code to edit the tutorial and try your own code.This tutorial contains code and discussion from the upcoming book Secrets of the JavaScript Ninja by John Resig.

Read more »