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?
3 Antworten
+ 2
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
const speed = 40
var time = (distance/speed)*60
console.log(time)
}