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

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?

Why Defining Properties In The Prototype Is Considered An Antipattern

I often see this pattern to define javascript objects function Person(name) { this.name = name;… Read more Why Defining Properties In The Prototype Is Considered An Antipattern

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

Will Javascript Ever Become A 'proper' Class Based Language?

I'm referring to MDN's article on JavaScript's 'future reserved words' (for use… Read more Will Javascript Ever Become A 'proper' Class Based Language?

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

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