Last active
May 30, 2017 14:07
-
-
Save supercodingninja/1eeba4e2fe8b3936e7e28fff2076ac42 to your computer and use it in GitHub Desktop.
My First Coding Adventure, with Justin Bieber (Why?!)_Codecademy created by supercodingninja - https://repl.it/IXfo/0
This file contains hidden or 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
// Check if the user is ready to play! | |
prompt ("ARE YOU READY FOR VICTORY?"); | |
confirm ("I AM READY FOR VICTORY!!!"); | |
var age; | |
age = prompt ("What's your age"); | |
if (age < 13) | |
{console.log ("You are allowed to play; but we take no responsibility.")} | |
else {console.log ("You're ready to play with the big boys! PLAY ON!")} | |
console.log ("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'"); | |
console.log ("Suddenly, Bieber stops and says, 'Who wants to race me?'"); | |
var userAnswer; | |
userAnswer = prompt ("Do you want to race Bieber on stage?"); | |
if (userAnswer == "yes") | |
{console.log ("You and Bieber start racing. It's neck and neck! You win by a shoelace!")} | |
else {console.log ("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")} | |
var feedback; | |
var feedback = prompt ("On a scale 1 to 10, where 1 is the Highest, and 10 is the Lowest, how do you rate this game?"); | |
if (feedback === 1) | |
console.log ("THANK YOU!!! YOU'RE AN AWESOME PERSON!!! Until the next race! HERE'S YOUR FREE TICKETS TO BROOKLYN TABERNACLE CHOIR CONCERT- I'm quitting the music business."); | |
else if (feedback <= 7) | |
{console.log ("Thank you! We should race at the next concert!")} | |
else if (feedback >= 8) | |
{console.log ("THAT'S JUST MEAN! LOL! I'm going to torture you with all my albums- MU---HAHAHAHHAHHAHA! I'll keep practicing coding and racing.")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment