Created
September 29, 2014 19:28
-
-
Save vparihar01/9a764f9779f159bdba97 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
if ( u_has_birthday_today() ) | |
{ | |
say_happy_birthday(); | |
while ( !is_stomach_full() ) | |
{ | |
aquire_cake(); | |
} | |
} | |
else | |
{ | |
alert("oopss something went wrong. Try again after next day :)") | |
} | |
function say_happy_birthday(){ | |
for (var i=0; i <= 3; i++) { | |
msg = (i == 2) ? "Happy Birthday RICH" : "Happy Birthday to You!" ; | |
alert(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment