Literals and constructors

// constructor function function Website() {}; // literal notation var Website = {};


// constructor function var InternalPointers = new Website(); InternalPointers.printUrl(); // literal notation Website.printUrl();

Comments

Popular Posts