JavaScript Lesson 9


#1

i need help to lesson 9

this what i have written
prompt("What is your name?");
prompt("where are you from?");

and i get
Oops, try again. Something went wrong with your prompt. Check the Hint if you need help!

and Null


#2

restart or refrsh:stuck_out_tongue_winking_eye:


#4

Use the prompt command to ask the user where they are from. Check out the examples above for how to do this! im pretty sure that means use prompt and not confirm.


#5

Are you still having a problem with this?


#6

I have the same problem, how did you solve it?


#7

I'm in the same boat, any solution?


#8

Same deal here. Bug?


#9

You need to assign the answer to the prompt to a variable.


#10

Don't forget to put a ; at the end of your prompt.

Example: ("Where is Jack");
Don't put a question mark.


#11

But that's a question, so it needs a question mark, but yes, you're right about the semicolons.


#12

That's weird. When I did lesson 9, my prompt was this:

prompt("Where are you from");


#13

@codenatesysarchitect

You should use question mark. Instead of asking the user "Where are you from", I asked "Where do you come from?" and it worked.


#14

Did you put it in parentheses?


#15

@codenatesysarchitect

Yes of course. It looked a bit like this, I don't know about you...

prompt("Where do you come from?");

#16

Can you give me a link?


#17

@codenatesysarchitect

The link of the exercise???


#18

Yeah for some reason I can't get to lesson 9.


#19

@codenatesysarchitect

Here you go:

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


#20

It works with or without a question mark. I tried both, and they both worked.


#21

You should go to home page and then again chose JS course. Only then worked for me.