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

Javascript: Object Or Object.prototype?

I just learned about prototype in Javascript (not the framework, the native feature). I perfectly g… Read more Javascript: Object Or Object.prototype?

Wrapping My Head Around Prototypes In Js

I've been trying to understand the concept of prototypes in JS, but for some reason I'm fin… Read more Wrapping My Head Around Prototypes In Js

Difference Between Classical Inheritance And Prototype Inheritance

I found this definition here : https://medium.com/javascript-scene/10-interview-questions-every-jav… Read more Difference Between Classical Inheritance And Prototype Inheritance

Extending Object Literal

var x = { name: 'japan', age: 20 } x.prototype.mad = function() { alert('US… Read more Extending Object Literal

Stopping Enumeration In Javascript When Using Prototype

I'm currently trying to get my head around using prototype in JavaScript. To experiment with th… Read more Stopping Enumeration In Javascript When Using Prototype

Javascript Proper Prototypical Inheritance

I've been spending my past couple hours researching prototypical inheritance, but I'm left … Read more Javascript Proper Prototypical Inheritance

How To Do Prototypal Inheritance In Javascript?

I've tried several ways but I couldn't do it. On the next example I want the Soldier gets a… Read more How To Do Prototypal Inheritance In Javascript?

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