Code Notes

JavaScript

Tips and tricks I learned throughout the years.

JavaScript looks familiar to many engineers, but behaves differently in all the places that matter. Here I share practical lessons that help whether you're just getting started or already shipping in production.

Latest JavaScript Tips

Why Use Prototype in JavaScript

There is a clear reason why you should use prototypes when creating classes in JavaScript. > They use less memory. When a method is defined using this.methodName a new copy is created every time a new object is insta…

Read article

Uncaught SyntaxError: Unexpected token

This is a common error in JavaScript, and it is hard to understand at first why it happens. But if you bear with me and remember that Bugs are a good thing you will be on your way in no time. > ### TL;DR > The Jav…

Read article

Previous Page 1 Next