prompt is not defined

Question:

Current behavior:

Desired behavior

Repl link:

code snippet

Hey @areebumar21 welcome to the forums!

If its a console project this is expected ask prompt() is only defined for websites.

3 Likes

You can however add this functionality to NodeJS using this method:

4 Likes