Javascript is At It Again!

Back in my day we used to call it Java, now the kids are all about the Javascript.

Javascript is At It Again!
Photo by Paul Esch-Laurent / Unsplash

I can't believe I'm doing this many posts on JavaScript. But here it is:

I hope you cry yourself to sleep thinking about this.

This is a cryptic one I admit, why would we get such a weird number when we do `a | 0`? It's because JavaScript interprets a to be a SIGNED 32-bit Float number when we do bitwise operations with it.

What about some easier test cases?

What about numbers?

I wonder why haven't we given up JavaScript at this point. We should just go back to punched tapes.

The young people today don't know how good programming was back in the day.


πŸ˜— Enjoy my writing?

If you read more than 2 of my posts and loved them, we have an honor code, meaning I give you value and you hit that subscribe button.

Forward to a friend and let them know where they can subscribe (hint: it’s here).

Join an Exclusive Tech Friendly Community! Connect with like-minded people who are interested in tech, design, startups, and growing online β€” apply here.