Both test cases valid but sololearn says it's invalid | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Both test cases valid but sololearn says it's invalid

I'm working on the "Trip Planner" project and all of the test cases are invalid but i'm pretty sure it's valid Here's my code: function main() { var distance = parseInt(readLine(), 10); //your code goes here console.log(590 / 40 * 60); console.log(100 / 40 * 60); }

21st Oct 2021, 2:09 PM
Pisit Boonyingruangrong
Pisit Boonyingruangrong - avatar
1 Answer
+ 1
Please look at the task description again: It asks us to get distance as user input. You never used distance in your program and hard coded the result instead
21st Oct 2021, 2:12 PM
Lisa
Lisa - avatar