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

How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true

Consider this short code: let obj1 = { name: 'obj1', } const obj2 = Object.create(obj1);… Read more How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true

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

Why Does Listing The Actual Constructor Of A Class In Javascript Important

I was reading on javascript garden http://bonsaiden.github.com/JavaScript-Garden/ about prototype … Read more Why Does Listing The Actual Constructor Of A Class In Javascript Important

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 Object.create() Doing Under The Hood?

I'm diving more into Prototypal Inheritance with JavaScript. When Object.Create() is in use to… Read more What Is Object.create() Doing Under The Hood?

The Constructor Of Object.prototype

In JavaScript, every object inherits its properties and methods from a specific prototype, where pr… Read more The Constructor Of Object.prototype

Extending An Array Properly, Keeping The Instance Of Subclass

I've written a class trying to extend the native Javascript Array class with a custom class, le… Read more Extending An Array Properly, Keeping The Instance Of Subclass

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