Javascript #9 What is programming


#1

simple enough task but this returns an error message and the "hint" leaves a lot to be desired as far as helpfulness.


#2

and i took the space out between "prompt" and the first parenthesis so it isn't that.


#3

Does a prompt popup show?
Is your browser blocking it?
Are you pressing cancel?


#4

no prompt popup shows up
my browser hasn't blocked any other popup
where is cancel?


#5

If nothing shows up when you run that, then that suggests that your browser blocked it.


#6

You can fool it by adding a string afterwards, so that the result becomes that string instead of the result of the prompt which you aren't getting

prompt('lalala')
'blah'

#7

adding a string fixed it. Thank you.


#8

I had the same issue and adding the string helped. This was really useful, thank you ionatan :slightly_smiling:


#9

Thanks, that helped!