why promopt not use in javascript code example
Example 1: js get input from user
var name = prompt("Please enter your name", "Harry Potter");
Example 2: prompt js
var answer = prompt("How are you? ");
var name = prompt("Please enter your name", "Harry Potter");
var answer = prompt("How are you? ");