+ 3

Why readLine doesn't work in Node.js SoloLearn?

26th Aug 2021, 10:29 PM
Solo
Solo - avatar
9 Antworten
+ 5
Vasiliy but there is no such thing as readLine function . Maybe sololearn only provides us with readLine function that hides it's actual implementation and is invoked on server side . There is readline module though, https://www.google.com/url?sa=t&source=web&rct=j&url=https://nodejs.org/api/readline.html&ved=2ahUKEwjF_sDX7M_yAhV8umMGHajmBrcQFnoECAQQAQ&usg=AOvVaw1kx1u0u8EqUN9WwYIxiNH7&cshid=1630020816624
26th Aug 2021, 11:34 PM
Abhay
Abhay - avatar
27th Aug 2021, 12:15 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Excellent question! I have also been struggling with the differences that Node has when run on Sololearn
26th Aug 2021, 11:21 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Abhay javascript jobs use node.js programs that use the readLine() input function and it doesn't fire when node.js is used outside of the job tester. I hope now you understand what kind of readLine we are talking about, or do you know any other readLine?
26th Aug 2021, 11:29 PM
Solo
Solo - avatar
+ 3
Rik Wittkopp and what is the result, did you manage to clarify something? Maybe there is another way to enter data?
26th Aug 2021, 11:36 PM
Solo
Solo - avatar
+ 3
Abhay here is what I was able to do from the information received from your link. There is a lot more there, but need to figure it out. Thank you very much for the information provided. ☺️ https://code.sololearn.com/c982MGR7n699/?ref=app
27th Aug 2021, 12:31 AM
Solo
Solo - avatar
+ 3
Rik Wittkopp thanks for sharing the Vinay_GB code, it looks more concise. ☺️
27th Aug 2021, 12:53 AM
Solo
Solo - avatar
+ 1
Which readLine?
26th Aug 2021, 10:58 PM
Abhay
Abhay - avatar
+ 1
I found a long and complicated way, which I don't like or understand. Let me see if I can find and post to you
27th Aug 2021, 12:06 AM
Rik Wittkopp
Rik Wittkopp - avatar