Can't get the prompt command to work


#1

Here's what I wrote to get the user to say where they are from-

prompt("Where are you from?");

Says my syntax is wrong, but it's exactly like the example.


#2

store it in a variable. then you can do whatever you want with it
like this

var userInput=prompt("Where are you from?");

#3

Thank you, I just re-started my browser and it worked that way. Thx again!