JavaScript is a very flexible language that allows you to tackle the same problem from very different points of view. At the same time, the huge community around it is constantly releasing new ideas and tools for developers to use.
This is helping the web development industry move forward at a very fast pace. And it is also the reason why such a widely used technology in an ever-growing industry is so frustrating for newcomers — and more experienced developers as well.
Leaving out the funny-to-tweet-about quirks you can see with operator precedence or coercion rules (i.e. doing "2" + 2 = 22
vs. "2" — 2 = 0
and then complaining about it) that you can figure out by reading the specifications, I want to cover four pain points I’ve seen new developers struggle with during their first contact with the language.
If you’re intrigued, here are the top 4 most frustrating quirks about JavaScript that developers have to deal with.
If you’re feeling desperate or just don’t know how to deal with these quirks, feel free to reach out, I’d love to help!
Until the next one, keep coding!º