I am trying to use prompt in my javscript code and it is not working


Current behavior:

Desired behavior

Repl link:

code snippet

Hi @sharmanihal018 , welcome to the forums!
You’ll need to use the prompt-sync library.
Enter this line:

const prompt = require('prompt-sync')()

Hope this helps!

1 Like

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