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

Passing Octal Value To New Number Function

I've made something like : Number.prototype.foo = function () { //code } // Octal number! … Read more Passing Octal Value To New Number Function

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