Created
August 5, 2015 09:39
-
-
Save popenkomaksim/2beae5ed610ec90df99a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.wish = function (wishes){ | |
console.log("**** " + wishes + " ****"); | |
}; | |
function HappyBirthday() { | |
this.congratulate = function(name) { | |
console.wish("Happy Birthday " + name); | |
console.wish("Whish you no uncaught TypeErrors like: Cannot set property 'getMoney' of undefined"); | |
console.wish("And no uncaught ReferenceError like: 'health' is not defined"); | |
console.wish(":-)"); | |
} | |
} | |
var bitrhdayInvitation = new HappyBirthday(); | |
bitrhdayInvitation.congratulate("Zhanna"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment