Prompt exercise


#1

Hello I am stuck on the prompt exercise. I am doing what what they are asking me to do? But I keep getting an error message. This is what I put on the right side. prompt("where are you from?"); exact how the example is. the error message that comes up is Oops, try again. Something went wrong with your prompt. Check the Hint if you need help! what am I doing wrong?


Replace this line with your code.


#2

Be sure you assign the return value of the prompt() to a variable:

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

#3

Thank you. I put a space between the quote and the word where. The code prompt (" Where are you from?"); instead of prompt("Where are you from?"); w


#4

It still wont work. I have exactly prompt("Where are you from?"); in it!


#5

Remember to assign the prompt()'s return value to a variable so you can use it in your code.


#6

you have to have space after the quote prompt(" Where are you from?") This
work for me.

tiara mitchell


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.