+ 1

JS code not working

I want to show how much minutes It would take tĂ´ trabel an Input Distance within 40 Miles an hour, but My code results in an error: function main() { var distance = parseInt(readLine(), 10); //your code goes here const milesHour = 40 const minutes = 60 var travelTime = distance / milesHour * minutes console.log (travelTime);

24th Nov 2022, 10:55 AM
Matheus Almeida
Matheus Almeida - avatar
1 Answer
+ 6
add the closing bracket }
24th Nov 2022, 11:15 AM
Kashyap Kumar
Kashyap Kumar - avatar