Literals and constructors
// constructor function
function Website() {};
// literal notation
var Website = {};
// constructor function var InternalPointers = new Website(); InternalPointers.printUrl(); // literal notation Website.printUrl();
// constructor function var InternalPointers = new Website(); InternalPointers.printUrl(); // literal notation Website.printUrl();
Comments
Post a Comment