Magic Eight Ball can't use a prompt() method

For the exercise Magic Eight Ball in Introduction to Javascript, I want the user to be able to enter his/her/their name and set it to the variable userName

Like so:

let userName = prompt("Enter your name:", "Jane");

I’m getting this error: ReferenceError: prompt is not defined
at Object. (/home/ccuser/workspace/learn-javascript-U2P1/main.js:1:78)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3

Is there something wrong with my script or with CodeAcademy?