We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fc123a + 7d5bc08 commit 52ba681Copy full SHA for 52ba681
1 file changed
README.md
@@ -5,10 +5,13 @@ This Contains Javascript Files
5
## Reason for not executing JS File, prompt command
6
7
- prompt() is a method of the Global window object found in browsers. It's not part of the JavaScript language.
8
-- window object is not defined in this environment.
+- window object is not defined in Node JS environment.
9
- Step 1: npm init
10
+
11
Step 2: npm install prompt-sync
12
13
Step 3: Open the js file (name.js) in which you want to use prompt and import the prompt-sync as given below. (on line 1)
14
15
eg: const prompt = require("prompt-sync")();
16
17
0 commit comments