

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Unit Tests
incomplete
2: Two Lesson Types
incomplete
3: Debugging
incomplete
4: Learning Effectively
incomplete
5: Debugging Practice
incomplete
6: Stack Trace
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
As we talked about, there are 2 types of coding lessons on Boot.dev:
Console output lessons
Unit-test lessons
Only 1 file of code, usually with a comment explaining where to write your code
When you "submit" your code, its console output must match the expected output exactly to pass
Debug print statements will cause your code to fail submission, so remove them before submitting
2 files of code: main and main_test. You can read the tests but you can't edit them
When you "submit" your code, the return values of your functions must match the expected values exactly to pass
Console output is ignored, you can leave debug print statements in your code
Going forward, you'll encounter far more unit-test lessons than console output lessons, but you'll still see both from time to time. Different concepts are better suited to different types of lessons.