Can't get the prompt command to work


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.


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

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


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