I can't take user input in node.js. It says prompt is not defined. Please help me out to take user input at javascript.
5/18/2021 7:53:33 AM
Aminul Islam9 Answers
New Answerprompt() is a browser specific function... node.js is designed to run at server side: what is the purpose of user input in this context?
Yes it works at my windows command prompt and I often use prompt-sync while coding. But it doesn't work at sololearn codeplayground and that's why I can't completing the projects of javascript courses which is mandatory to acquire certificate.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message