+ 3
User input
How can we take user input in JavaScript
3 Respuestas
+ 8
In JavaScript, we can get user input like this: var name = window. prompt("Enter your name: "); alert("Your name is " + name); The code above simply prompts the user for information, and the prints out what they entered in. Hope it was clear :)
+ 8
Suhaila Abdulkareem welcome
+ 3
Aditya Thank u😊