Prompt and alert error

Describe your feature request
whenever i used prompt and alert it give error

What problem(s) would this feature solve?

Explain what you were trying to do when you came across the problem leading to this feature request
i request to success all the tool or install the tool that are needed to slove this problem

Replit Profile: https://replit.com/@beniwalaman860

Hi , welcome to the forums!
This was an update, so you’ll need to use the prompt-sync library.

const prompt = require('prompt-sync')()
prompt('Enter your name: ')

As for alert, as you are probably using the Node.js template (I’m guessing), you won’t need it; you can use console.log() instead.
Hope this helps!

2 Likes