On this and new

from blog Oh, thoughts, you know, | ↗ original
This is the pattern that a lot things recommend function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; this.name = function() { return this.firstName + " " + this.lastName;} this.printName = function() { console.log("my name is", this.name())} } var george = new...