Code your own adventure


why doesn't the .toUpperCase() work?

var user = prompt("You're walking through the woods. 
There's no one around, and your phone is dead. Then out of the corner of your eye you spot him. 
Shia LaBeouf.
 Do you CONTINUE or STOP?").toUpperCase()


Are you trying to get the input to be uppercase? If so, it'd probably be a good idea to log the result of that prompt first.


so, like:




No, just log user to the console after the code you've already written.


I'm supposed to use .toUpperCase(); or .toLowerCase(); for this lesson though.


Yeah, so use it on the prompt in the first place;

var user = prompt("blahblahblah").toUpperCase();


Thank you so much! You've been a great help!


No problem :slight_smile: