0
How can I take the input in JavaScript?
The syntax
5 Antworten
+ 5
I would take in consideration that pop-up-windows, especially in large numbers, can be annoying to many users, because they are forced to input data in a distinct order.
Let the user take his own choice how he wants to input the data.
There are better methods like <input/> to give the user the feeling of not being a slave to the machine.
+ 6
Jarol J ,
Use prompt() statement to take input ...
Eg:-
number=prompt("Enter a number:");
+ 4
I’ve included an example of how to take inputs in JavaScript. There are multiple ways to do this, including using the prompt() method or HTML input elements. I hope the code and annotations help you understand.
https://code.sololearn.com/WBvLwMNxyGG9/?ref=app
+ 3
Learn more in the Javascript course.