0

Trip planner Code.

I have a project! Trip planner code. I do not understand how to make the code work so it gives me an output of the miles divided by the time. Can anyone assist me with this! Has anyone done this project for Java script?

19th Jan 2021, 8:14 AM
Brent Malcolm
3 ответов
+ 2
function main() { var distance = parseInt(readLine(), 10); //your code goes here const speed = 40 var time = (distance/speed)*60 console.log(time) }
12th Feb 2021, 8:06 PM
Mohamed Salim
Mohamed Salim - avatar