0
In javascript learning path for beginners it haven't taught about how to take input from user , can anyone suggest it?
5 Réponses
+ 1
JavaScript uses the prompt method to take input from the user. An example is given where information is being collected and printed from the user through a prompt inside the variable called person
let person = prompt("Please enter your name", "Harry Potter");
console.log(person);
+ 1
chetan kumar readLine() This method is typically used inside this application to collecting information from the app's built-in information library. When you write the code yourself, you need to use the prompt method to receive information from the user.
+ 1
chetan kumar you are welcome. 😊
0
EAJUDDIN ya but in learning path it showing readLine()...??
0
EAJUDDIN tq