Please help I can't get the prompt code to work


#1

prompt("message");
I typed this in and it doesn't work


#2

It does work, but it is not what is expected, I suspect. When asking for user input we need to assign it to a variable so we can examine it further.

user_input = prompt("message");

#3

Thanks, it worked. I can move on now:)


#5

That does not work for me.


#6

Then it may mean the variable name to use is given in the instructions and expected by the lesson checker. Please post a link to the exercise page, along with what code you have, so far. Also, any error message. Thanks.


#7

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