Skip to content Skip to sidebar Skip to footer
Showing posts with the label Oop

Oop Javascript - Is "get Property" Method Necessary?

Given a very simple js object constructor and its prototype... function MyTest(name) { … Read more Oop Javascript - Is "get Property" Method Necessary?

Javavscript Change Sub-class Property On Instantiation

if I have myClass.prototype.subClass= { foo:false } when I create a new instance on an object how… Read more Javavscript Change Sub-class Property On Instantiation

'this' Keyword Overriden In Javascript Class When Handling Jquery Events

I have defined a class in JavaScript with a single method: function MyClass(text) { this.text =… Read more 'this' Keyword Overriden In Javascript Class When Handling Jquery Events

Javascript Prototypes,objects,constructor??i Am Confused

I have gone through plenty of Stack Overflow question that had description but I seriously found th… Read more Javascript Prototypes,objects,constructor??i Am Confused

Javascript Prototypical Inheritance Confused

given the standard way of achieving inheritance like this function BaseClass() { } function SubCl… Read more Javascript Prototypical Inheritance Confused

Call Static Methods When Using Default

When using ES6 modules and export default class how is it possible to call a static method from ano… Read more Call Static Methods When Using Default

Simple “class” Instantiation

From John Resig blog: // makeClass - By John Resig (MIT Licensed) function makeClass(){ return fu… Read more Simple “class” Instantiation

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