0

How do you solve test cases?

Hi Im a complete newbie to Sololearn. I find the problem solving parts of the js courses to be quite confusing. Where are the variables for the inputs? I cant make an output if I dont know where are the inputs. Pls help

21st Apr 2021, 1:07 AM
Charles Ganade
Charles Ganade - avatar
5 Antworten
+ 3
Charles, I'm going to assume you mean the input already included. Let's take a look at the end of Module 2 project. It's also called Lesson 13 or Trip Planner. In the Problem tab, it notes that the code to take input is already present. This also confused me, however if you look at the code you'll see that the variable called distance is already included before you do anything. You can use this variable in your solution.
21st Apr 2021, 2:44 AM
Phil Andy Graves
Phil Andy Graves - avatar
0
Can you give me an example of the part that you are having problem(which lesson or project)?
21st Apr 2021, 1:58 AM
ZezinhoFlz
ZezinhoFlz - avatar
0
Ah the Snail in the Well part
21st Apr 2021, 2:47 AM
Charles Ganade
Charles Ganade - avatar
0
The input is the "depth" variable
21st Apr 2021, 2:49 AM
ZezinhoFlz
ZezinhoFlz - avatar
0
Ah ok thnx
21st Apr 2021, 2:50 AM
Charles Ganade
Charles Ganade - avatar