+ 3

Input In JavaScript?

Is there any way we can take input from user during runtime in javascript.

23rd Jun 2020, 1:28 AM
Johar Khan
Johar Khan - avatar
2 Answers
0
Yes why not use the condition when conditions become true call a prompt
23rd Jun 2020, 1:29 AM
Ayush Kumar
Ayush Kumar - avatar
0
You can use the function prompt () Or add input html element. After that, you can get the value of your input and do with it whatever you want
23rd Jun 2020, 7:11 AM
arieh