Using Prompt in javscript
Hi How can I use prompt in javscript in onecompiler.
It gives me an error: ReferenceError: prompt is not defined
Any solution?
1 Answer
1 year ago by Islam
@Islam NodeJS is the JS runtime, so you can't use it in Javascript.
You can use it in HTML https://onecompiler.com/html
1 year ago by Karthik Divi