5 JavaScript WTFs

The oddities of JavaScript can make developers laugh nervously

Artturi Jalli
Better Programming
Published in
3 min readMay 7, 2021

--

Drawing of code on monitor and specific code examples
Photo by the author.

We all love JavaScript. It’s a great language. What makes it even more likable is that it has its own “funny” side too. Today, I’m going to show you five WTFs in JavaScript and explain what’s going on there.

And nope, these are not bugs.

1. baNaNa

--

--