Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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

How Do I Mimic Access Modifiers In Javascript With The Prototype Library?

I've been working with the prototype library for some time now and occasionally find myself wis… Read more How Do I Mimic Access Modifiers In Javascript With The Prototype Library?

Javascript Constructor Is Not Executed?

I'm attempting to implement an example I found on JavaScript inheritance, and the child object … Read more Javascript Constructor Is Not Executed?

Javascript Oop In Nodejs: How?

I am used to the classical OOP as in Java. What are the best practices to do OOP in JavaScript usin… Read more Javascript Oop In Nodejs: How?

Why Is Foo.hasownproperty('__proto__') Equal To False?

var foo = { bar : 5 } Why is foo.hasOwnProperty('__proto__') equal to false? It can'… Read more Why Is Foo.hasownproperty('__proto__') Equal To False?