This code is not working in replit

Question: My code is not working in replit ( Node JS)

Repl link: https://replit.com/@SatyamSingh152/52Callbacks#index.js

code snippet

To use the prompt function in Node.js, you need to use the ‘prompt-sync’ library. Add this line to the beginning of your file:

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