0
Can't pass Node.js practice
Open JavaScript practice, first task with node.js. I can't pass user's input 'coz it is always NaN. I already solved it on my computer with "readline" module, but can't do it on SoloLearn. Please help me.
5 ответов
+ 2
Boris big sale is pro one , i can tell about trip planner
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
var hours=distance/40;
console.log(hours*60)
}
+ 2
Yes but here the program itself calls main
+ 1
Trip planner?
+ 1
Abhay, ty wm! The problem was with function main. For any function to do something you need to run it -
main();
But in this case it caused only problems.
0
Abhay, yes. And "Big sale" also.