Tags: ecmascript

Multiple Inheritance in ES6 with Proxies

Inheritance in JavaScript

As you probably know, JavaScript features an inheritance pattern called prototypal inheritance. In simplified terms, it means that objects have a prototype, and when a property of an object is accessed, it’s first checked if the object itself has the property, and if not, the same is done for its prototype and so on. This is a very powerful model, not least because of its flexibility. You can even use it to simulate classical inheritance.


Posted 2012-11-28T05:00:00.000Z.

JavaScript Green Threads

What on Earth are they?

For an introduction to green threads, I suggest reading this Wikipedia article. What they mean in this context is however a bit different, as in JS there is normally no threads at all, and because callbacks in JS are quite easy and event loops are usually controlled by things outside your control, you might feel that there’s not much need for scheduling control.


Posted 2012-07-05T05:00:00.000Z.