+ 1
Why isn't my code working
function main() { var distance = parseInt(readLine(), 10); //your code goes here var hour = distance / 40 var minutes= hour *60 document.write( minutes +"minutes"); }
4 Respostas
+ 3
As far I can see
d is not defined
h is also not defined
assuming it to be nodejs in sl playground
document.write should be replaced with console.log
+ 2
Ace Coder are you trying to solve javascript lesson module trip planner?
if yes
then change
document.write to console.log
and remove that "+minutes" the sample output does not contain it!
+ 1
Inumaki thanks it worked
0
Inumaki How about now