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

Why Is Functionname() == Functionname.prototype.constructor()

I noticed if I have the following: var functionName = function(){console.log('this is a functio… Read more Why Is Functionname() == Functionname.prototype.constructor()

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

What Is The Alternative Equivalent Of Javascript "prototype" In Typescript?

Typescript provides Object Oriented & Generic programming paradigms apart from Functional progr… Read more What Is The Alternative Equivalent Of Javascript "prototype" In Typescript?

Resetting The Constructor Property Of Prototype Object

Consider the following snippet: function shape(){ this.name = '2d shape' } function tr… Read more Resetting The Constructor Property Of Prototype Object

Javascript Prototype Inheritance And Html Canvas

I'm a Ruby developer who finally decided to learn JavaScript seriously. So I purchased some boo… Read more Javascript Prototype Inheritance And Html Canvas

Inherit Prototype Methods From Other Classes Without Overriding Own Prototype Methods

Is there a better way of having a class inherit prototype methods from another class and still be a… Read more Inherit Prototype Methods From Other Classes Without Overriding Own Prototype Methods