+ 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.

19th Mar 2021, 4:48 PM
DURU SOMTOCHUKWU PHILIP
DURU SOMTOCHUKWU PHILIP - avatar
1 Answer
+ 2
Use prompt() to get user input in javascript. var name = prompt("Enter your name") var age = prompt("Enter your age")
19th Mar 2021, 5:04 PM
Vadivelan