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

2D Optics Demos in JavaScript

We’ve been incredibly impressed and inspired by https://ciechanow.ski/cameras-and-lenses/ by Bartosz Ciechanowski. He did such an incredible job. And it appears he did it all with raw javascript. Javascript is very freeing once you decide to ignore any ki... (more…)

Read more »