+ 1
trip planner
Hi people, i cannot pass this exercise, can you please help to continue with javascript? 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 already present), output to the console the time it will take you to cover it in minutes. Sample Input: 150 Sample Output: 225 https://code.sololearn.com/ca22A476a8a1/#node
4 Answers
+ 1
Don't assume distance as 150, that's just an example. Distance is given by input on line 3.
Only numbers in your code should be 40 (miles) and 60 (minutes).
+ 1
you should substitute the "distance" variable instead of the direct distance value. the test program will automatically substitute its own values
0
I tried distance/speed
150 / 40 but says no outputs,
0
test 1 has been solved. but now with test 2 if i change the output says that test 1 is wrong. how is it work? it is the first time i use this to practise.