Lesson 9 prompt command


#1

prompt("Where are you from?");

this is exactly wht I am typing. why is it showing wrong?


#2

@hrithikvinnay

You must prompt the user inside a variable. Per example:

var variableName = prompt("You ask your question here");

#3

still didnt work. Can you type the exact code and send me.. then i can see if it works.


#4

@hrithikvinnay

Nevermind, your code work:

However, you are supposed to get a popup on your screen asking you "Where you come from?". Try submitting it again or refreshing your webpage. Sorry, I mistook with other exercise.


#5

I tried. It still isnt working.


#6

@hrithikvinnay

It's supposed to work. Can you give me the link of your exercise.


#7

https://www.codecademy.com/courses/getting-started-v2/1/4?curriculum_id=506324b3a7dffd00020bf661

Here u go!


#8

This is the answer:

prompt("Where are you from");

Don't forget the ; :slightly_smiling:


#9

Thank You so much!
Appreciated.


#10

Thanks. i got it. thanks for ur help though.


#11

You're very welcome! :smiley:


#12

please help, don`t work prompt

https://www.codecademy.com/courses/getting-started-v2/1/4?curriculum_id=506324b3a7dffd00020bf661


#13

@varivashenya

If you have a problem, please start a new thread with your link + error message + code. Thanks.


#14

Get rid of the question mark. Then it should work.


#15

It worked for me with prompt("Where are you from?"). The only difference I can see is that I had no ; at the end!


#16

Weird. Maybe it works two different ways. :confused: