Object Creation in JavaScript
In our last article, we talked about Prototype Inheritance in Javascript. Today, we’ll take a look at the different ways to create objects in JavaScript and the resulting prototype chain for each method.
In our last article, we talked about Prototype Inheritance in Javascript. Today, we’ll take a look at the different ways to create objects in JavaScript and the resulting prototype chain for each method.
JavaScript uses a prototypal inheritance model, and this can be a little confusing for developers coming from class-based languages such as Java or C++. Prototype inheritance is simple but yet a powerful model. In this post, we are going to talk a little bit about it and how it is built in JS. If...
You have probably heard of terms like “V8,” “event loop,” “call stack,” and “callback queue.” In this post, we are going to examine what these terms mean, how they relate to one another, and, more generally, how JavaScript works. Javascript is a powerful language that has stood the test of time and...