Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help

var month = readLine() What is -> redLine()?

19th Sep 2021, 5:02 PM
Ramazan
Ramazan - avatar
4 Answers
+ 2
readLine() : gets an input from the user. Happy coding!
19th Sep 2021, 5:06 PM
mesarthim
mesarthim - avatar
+ 2
There is no readLine() function in js or node js . It's probably a custom function that sololearn uses to take input from user . But there is readline module in node js that is used to take user input. https://nodejs.org/api/readline.html
19th Sep 2021, 5:40 PM
Abhay
Abhay - avatar
+ 2
Abhay Oh, did I mix with console.log and readLine()? It seemd it exist. I must learn more thing about it. Thanks buddy!
19th Sep 2021, 5:45 PM
mesarthim
mesarthim - avatar
+ 1
mesarthim i believe there is nothing like that in js !
19th Sep 2021, 5:41 PM
Abhay
Abhay - avatar