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

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()

Why My __proto__ Reference Shows Wrong Name In Console?

My proto reference of 'mike' instance points to 'Student' but as its name shows &#… Read more Why My __proto__ Reference Shows Wrong Name In Console?

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

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

Javascript Inheritance ; Call And Prototype

To implement inheritance in Javascript, one generally does the following 2 steps; Say I have a base… Read more Javascript Inheritance ; Call And Prototype

Javascript Prototypal Inheritance - Truly Understanding The Concept

I was looking at this video explanation(https://www.youtube.com/watch?v=qMO-LTOrJaE) of JS prototyp… Read more Javascript Prototypal Inheritance - Truly Understanding The Concept