+ 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
7 Réponses
+ 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..😟🙏
0
Yeah, what's up?
0
I can't solve it.Can you help me?
0
I can try, share the code, if you have any, the default code they provide is a good starting point 👍
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 ...
0
Michael
function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
console.log(distance / 40 * 60);
}
- 1
Omg bro thank you sooo much.You helped me a lot 🙏✌️