Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototypal Inheritance

What Is The Reason Es6 Class Constructors Can't Be Called As Normal Functions?

ES6 class constructors can't be called as normal functions. According to ES6 a TypeError should… Read more What Is The Reason Es6 Class Constructors Can't Be Called As Normal Functions?

Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments

Consider the following Javascript snippet, var SuperClass = function(x){ this.x = x; this.a… Read more Javascript - How To Initialize Super Class If Super Class Constructor Takes Arguments

In Javascript, The Difference Between 'object.create' And 'new'

I think the difference has clicked in my head, but I'd just like to be sure. On the Douglas Cro… Read more In Javascript, The Difference Between 'object.create' And 'new'

Js Prototype Objects Not Inherited?

My question is about a strange output that I came across while playing with JS prototypal inheritan… Read more Js Prototype Objects Not Inherited?

Minor Drawback With Crockford Prototypical Inheritance

Just experimenting with different inheritance techniques in JS, and came across something mildly di… Read more Minor Drawback With Crockford Prototypical Inheritance

Angular: Dependency Injection With Prototypal Inheritance

According to Todd Motto's styleguide, Controllers chapter: Inheritance: Use prototypal inherit… Read more Angular: Dependency Injection With Prototypal Inheritance