0 points
Submitted by cja711
over 8 years

What am i doing wrong?

// Check if the user is ready to play!

confirm(“Are you ready to play”); var age = prompt(“What is your age?”);

if(age <= 18) { console.log(“You are allowed to play but we take no responsibility!”); } else { console.log(“You can play on”); }

console.log(“Snow White and Batman were hanging out at the bus stop, waiting to go to the shops. There was a sale on and both needed some new threads. You’ve never really liked Batman. You walk up to him.”); console.log(“Batman glares at you.”); var userAnswer = prompt(“You feeling lucky, punk?”); if(userAnswer === “yea”) { console.log(“Batman hits you very hard. Its Batman, of course he wins”); } else { console.log(“You didnt say yes to feeling lucky. Wise choice! Your a winner in the game of not getting beaten up”); } var feedback = prompt(“Rate this game out of 10”); if(feedback > “8”) { console.log(“This is just the beginning.Stay tuned for more!”); } else { console.log(“It took me a long time to make this!”); }

Answer 5159edf37b03d036d90029b8

0 votes

Permalink

take the quotes from around the number 8.

points
Submitted by katnhat
over 8 years

2 comments

cja711 over 8 years

thanks

Amanda Beury over 8 years

i was having a similar problem but i took the quotes off the number 8 and it still won’t work..

Answer 5159f3a6e44dcb3d9a0029b3

0 votes

Permalink

I doubt I will be able to help you as when I compared your code to mine everything seemed to work, the only thing that didn’t work was the snow white and bat man part, and I cannot figure out why, I dunno if you got it to work, but it didn’t work for me.

points
Submitted by mtmaster
over 8 years