Code your own adventure


#1


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()


#2

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.


#3

so, like:

console.log(user).toUpperCase();

Right?


#4

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


#5

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


#6

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

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

#7

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


#8

No problem :slight_smile:


#9