+ 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.
3 ответов
+ 2
// speed = distance / time (in which you reached the distance). Thus
var time = distance / speed;
+ 1
Can you do it in a coded form?
+ 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.