0

User input in javascript

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.

18th May 2021, 7:53 AM
Aminul Islam
Aminul Islam - avatar
5 Antworten
0
prompt() is a browser specific function... node.js is designed to run at server side: what is the purpose of user input in this context?
18th May 2021, 8:47 AM
visph
visph - avatar
0
Well, how can I take user input at node.js?
18th May 2021, 8:49 AM
Aminul Islam
Aminul Islam - avatar
0
Prompt-sync doesn't work
19th May 2021, 8:50 AM
Aminul Islam
Aminul Islam - avatar
0
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.
19th May 2021, 2:37 PM
Aminul Islam
Aminul Islam - avatar