The Window Object

The prompt() Method

Click the button to demonstrate the prompt box.

function myFunction() {
    let person = prompt("Please enter your name");
    if (person != null) {
      document.getElementById("demo").innerHTML =
      "Hello " + person + "! Welcome to UCONN";
    }