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

How Can I Maintain Control Of The This Keyword When Extending Prototypes In Jquery?

I'm implementing a class-like structure in jQuery, but I'm having some trouble when I try t… Read more How Can I Maintain Control Of The This Keyword When Extending Prototypes In Jquery?

Critique My Prototypal Inheritance Pattern

I've decided to use Object.create, as it seems much more intuitive than using 'new' and… Read more Critique My Prototypal Inheritance Pattern

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 Object In Javascript

I'm trying to extend Object functionality this way: Object.prototype.get_type = function() { … Read more Extending Object In Javascript

Javascript: Attaching Oop Methods To Events And The 'this' Keyword

I am new to OOP Javascript and am having trouble with the this keyword and events. What I'm try… Read more Javascript: Attaching Oop Methods To Events And The 'this' Keyword

Add Propertie To Object If Property Exists In Another Object Using Lodash

I have two objects and I need to add properties to one object based on match from properties of ano… Read more Add Propertie To Object If Property Exists In Another Object Using Lodash

Javascript Object Property Not In Scope

I seem to have a problem with objects' properties' scope. I would like to output each of th… Read more Javascript Object Property Not In Scope

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