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

Javascript Inheritance: When Constructor Has Arguments

Using pure JavaScript to do inheritance, this is what I usually do: function A() {} A.prototype.run… Read more Javascript Inheritance: When Constructor Has Arguments

Javascript Prototype Declaration

There are two pieces of codes. Why is the first one correct but the second one incorrect? What'… Read more Javascript Prototype Declaration