- 1
Hi! One question. Somebody more have a problem with the "Coding project planning a trip" in JavaScript?
I am new. And I don't can complete this exam. Because, I can put the result in one problem, but the application need two answer for finish the exam. Somebody help? Plis
3 ответов
+ 1
You need to first get the hours from the distance: //40 miles/hour
var hours = distance /40;
then convert the hours to minutes.
var minutes = hours*60;
Finally, display the result
console.log(minutes);
+ 1
Please save your attempt on SL Playground and link here.
+ 1
Think about what are the inputs and outputs of your program and what are the known constants etc. How will you take input? What processing will you do to the input data? How will you provide the output?