RsD0p9BK
12/2/2015 - 12:40 PM

prototypeVariables.js

// Declare properties on the prototype

// Create a constructor
function A() {}

// Add a prototype property
A.prototype.name = "Freddy";

// http://stackoverflow.com/questions/16751230/why-declare-properties-on-the-prototype-for-instance-variables-in-javascript