+ 1
How do I collect user input in javascript
I want to make a code 5hat collects the users input and stores it as a variable.
1 Answer
+ 2
Use prompt() to get user input in javascript.
var name = prompt("Enter your name")
var age = prompt("Enter your age")