0

How can I take the input in JavaScript?

The syntax

9th Sep 2023, 5:06 PM
Jarol J
Jarol J - avatar
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.
10th Sep 2023, 3:14 AM
Jan Markus
+ 6
Jarol J , Use prompt() statement to take input ... Eg:- number=prompt("Enter a number:");
9th Sep 2023, 5:13 PM
Riya
Riya - avatar
+ 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
11th Sep 2023, 5:40 AM
Moree
Moree - avatar
+ 3
Learn more in the Javascript course.
9th Sep 2023, 8:23 PM
Chris Coder
Chris Coder - avatar