+ 1

Can someone help me asnwer this JS question in coded form?

You need to plan a road trip. You are traveling at an average speed of 40 miles an hour. Given a distance in miles as input (the code to take input is 590), output to the console the time it will take you to cover it in minutes.

16th Apr 2022, 12:31 PM
Jeff Carter
3 Answers
+ 2
// speed = distance / time (in which you reached the distance). Thus var time = distance / speed;
16th Apr 2022, 12:43 PM
JaScript
JaScript - avatar
+ 1
Can you do it in a coded form?
28th Apr 2022, 1:05 PM
Jeff Carter
+ 1
Yes I can. The most important is already above written. Please save first your attempt on Sololearn Playground and provide us with the question a link to it. In this way you can more learn.
28th Apr 2022, 3:13 PM
JaScript
JaScript - avatar