Getting started with programming. Question 9 what is programming


#1



I can not see what the correct way to ask someone where they are from

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


prompt("Where are you from?");


Replace this line with your code.


#2

@shawn1288,
Try it with

prompt("What is your name?");

AND
your Browser should have popup enabled


#3

Same answer. Wont work.


#4

@shawn1288,
Then try a so-called refresh Browser

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#5

Still same thing. This is very frustrating.


#6

@shawn1288,
What is the EXACT message you are receiving....


#7

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


#8

@shawn1288,
What do you see when you use

alert("popup is enabled");

#9

popup is enabled

im using windows 8.1


#10

@shawn1288,
Which Browser ???


#11

internet explorer

Should this work

prompt("Where are you from?");


#12

@shawn1288
I myself am using windows 8.1 IE11
I cannot understand why it is your prompt statement is not working....
Here the documentation
https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt


#13

This error message will be given if the user clicks Cancel. Be sure to click OK.


#14

Im having the same issue. I'm writing down:

prompt("where are u from?");

and it gives me the codecademy error message. I've already tried refreshing etc etc. Nothing works. Im using chrome.


#15

Try codecademy labs: link here and see what it gives you.
Change and try another browser.
Are you using any NoScript extension?
Is your browser up to date

Can you see the dialogue box any where on your screen?


#16

Hey Mashuk,

On Codecademy labs link you provided, it works.
About your questions:
I'm NOT using any NoScript extension.
My browser IS up to date.

It's a shame because now I'm stuck at this very early lesson :frowning:


#17

Well, for some unknown reason, it now works. I didn't do anything different. I haven't even closed and opened my browser again. Anyway, thanks for the support.


#18

For last few days I saw several issues along that line and I try to recreate them but for me in all browsers it seems working fine. But somehow it's not working for you. I am really interested to know how the problem get solved and what was the reason behind it.


#19

Yes, I think the same and I'd love to help. So, what happened is, I opened a new tab, went to the lesson, opened it and tried again. And it worked. Oddly enough before, I was even cache-refreshing (cmd+shif+r), and it wouldn't work afterwards. I really have no idea how in the ■■■■ it just suddenly worked :confused: If I come across this issue again, I'll make sure to check the console and get back here.


#20

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