Cómo preguntar la entrada en JavaScript
let name=prompt("What is your name?");
console.log("Hi "+name)
Code_Breaker
let name=prompt("What is your name?");
console.log("Hi "+name)
var name = prompt("Please enter your name", "Harry Potter");
var name = window.prompt("What is your name");
document.write("Hello " + name);
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
var username = prompt("What is your name?");
var name = prompt("Please enter your name", "Harry Potter");