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

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

Prototypal Inheritance In Javascript

I've been watching Douglas Crockford's talks at YUI Theater, and I have a question about Ja… Read more Prototypal Inheritance In Javascript

Javascript Prototypal Inheritance?

I'been doing some inheritance in js in order to understand it better, and I found something tha… Read more Javascript Prototypal Inheritance?

Add Formats To Native Date Parser

I was wondering if there was any way to add (and map) formats to the native Date parser in javascri… Read more Add Formats To Native Date Parser

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

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

Javascript Inheritance From Multiple Objects

I'm not very well aquainted with javascript inheritance, and I'm trying to make one object … Read more Javascript Inheritance From Multiple Objects

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'

Javascript Inheritance From Multiple Objects

I'm not very well aquainted with javascript inheritance, and I'm trying to make one object … Read more Javascript Inheritance From Multiple Objects