It uses a dialog modal to which we supply prompt text and default return value,
user = prompt("Name?", "Not specified")
But when I put this into the editor, it shows a
ReferenceError: prompt is not defined
What kind of editor?
I was trying it within codecademy in the exercise.
It should be present unless the engineers for that exercise don’t want it to be defined. Chances are if
prompt does not work, then neither will
What exercise are you on (please copy URL in location bar and paste into a reply)?