+ 6

Hi, In Web code works, but in node. js it doesn't work?It's appears NaN. What I have to do?

https://code.sololearn.com/WGz56yk8YLBt/?ref=app https://code.sololearn.com/cZMQhT3z3vqp/?ref=app

10th Feb 2021, 8:31 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
4 Antworten
+ 6
But in node. js there is.
10th Feb 2021, 10:52 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 6
It is appear NaN in node. js
10th Feb 2021, 2:40 PM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
0
There is no readLine function in javascript . You need to call main function as well. i believe sololearn code coaches for node js are programmed differently to help them with processing user input.
10th Feb 2021, 9:50 AM
Abhay
Abhay - avatar
0
Egor Tonchev(EGO) i only know of this readline module. https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.geeksforgeeks.org/node-js-readline-module/amp/&ved=2ahUKEwj8xrObl9_uAhWL6nMBHWXJBP8QFjABegQIAhAB&usg=AOvVaw24r98Do_GkeOvbR7jpw6gq&ampcf=1&cshid=1612955435892 But for sure the readLine function will still work here on sololearn as i said i believe they use it to process user inputs in a different way , just not idea what they do exactly.
10th Feb 2021, 11:13 AM
Abhay
Abhay - avatar