1var name = window.prompt("What is your name");
2document.write("Hello " + name);
1var person = prompt("Please enter your name", "Harry Potter");
2
3if (person != null) {
4 document.getElementById("demo").innerHTML =
5 "Hello " + person + "! How are you today?";
6}