+ 2

Hi guys.There are now new tests after every lesson.Im now learning JS.Did someone of you solve the "Trip Planner" test?

Trip Planner test JS

3rd Dec 2020, 11:23 PM
Michael
Michael - avatar
7 Answers
+ 1
Hi frndz, i am getting like test case one and two are true, but when one becoming true, other becoming false.. and i am not able to open other 3 test cases also. kindly please tell me if anyone knows the answer and how its all gonna work.. please help me..😟🙏
16th Jan 2021, 5:57 AM
ANJANA SATHYAN
ANJANA SATHYAN - avatar
0
Yeah, what's up?
4th Dec 2020, 12:38 AM
Steven M
Steven M - avatar
0
I can't solve it.Can you help me?
4th Dec 2020, 5:08 AM
Michael
Michael - avatar
0
I can try, share the code, if you have any, the default code they provide is a good starting point 👍
4th Dec 2020, 12:04 PM
Steven M
Steven M - avatar
0
I could solve the first question by writing: var x = 590; var y = 40; console.log(x/y*60) //Answer is "885" which is right.But then i dont know how to solve other questions.Pls help ...
4th Dec 2020, 12:16 PM
Michael
Michael - avatar
0
Michael function main() { var distance = parseInt(readLine(), 10); //your code goes here console.log(distance / 40 * 60); }
9th Dec 2020, 2:01 AM
Mohammed Alam
Mohammed Alam - avatar
- 1
Omg bro thank you sooo much.You helped me a lot đŸ™âœŒïž
9th Dec 2020, 6:14 AM
Michael
Michael - avatar