Skip to content

Commit 52ba681

Browse files
committed
2 parents 2fc123a + 7d5bc08 commit 52ba681

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ This Contains Javascript Files
55
## Reason for not executing JS File, prompt command
66

77
- 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.
8+
- window object is not defined in Node JS environment.
99
- Step 1: npm init
10+
1011
Step 2: npm install prompt-sync
12+
1113
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+
1215
eg: const prompt = require("prompt-sync")();
1316

1417

0 commit comments

Comments
 (0)