Comment obtenir une entrée d'utilisateur dans JS
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Cute Cormorant
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
var name = prompt("Please enter your name", "Harry Potter");
var x = document.getElementById("myText").value;