0
What’s wrong with this code?
function main() { var distance = parseInt(readLine(), 10); var mph = hours = distance/mph minutes = hours * 60 document.write(minutes) } the code above has something wrong with it. It does not give me an output. Why is that?
3 Respuestas
+ 5
You missed to define the variable mph as 40.
Also you need to get the output in console.
So, You have to use console.log instead of document.write
+ 2
thank you Simba
- 1
Specify your problem. Please.