Module 0 · Start here
Lesson 0.2
How to read a lesson
Every lesson has the same sections in the same order, so you always know where to look.
The problem
Why it matters
Without it
When each lesson has its own layout, the reader must hunt for the code, the words, and the examples.
With it
The same layout every time. Read the summary, then the steps, then only the details you need.
How it works
The order of the sections
The one-line summary sits under the title, followed by six sections in the same order in every lesson. The layout is fixed on purpose, so a reader can go to any section in one move.
- Summary
- The problem
- How it works
- Code
- Common mistakes
- Use and skip
- Words to know
The order of a lesson, from the summary to the words to know. const sections = [ "The problem", "How it works", "The code and its output", "Common mistakes", "Use it when and skip it when", "Words to know",];console.log("Sections ->", sections.length);Output
Sections -> 6
Example values you can check by hand
Each block of a lesson gives an example value that you can check by hand. This table scores three FAQ entries for "My password does not work", the same example as lesson 0.1. The password entry scores highest.
FAQ question Shared words Score How do I get a refund none 0 How do I reset my password my, password 2 When will my order ship my 1 Shared words and scores for the FAQ entries in lesson 0.1. The password entry scores highest. The code and its output
The code section holds two things. The code is a program you can copy and run. The output is the exact text the program prints, so compare your run with it to check your copy.
Code
- A program you can copy and run
- Comments above each block explain it
Output
- The exact text the program prints
- Compare your run with it to check your copy
What each part of the code section is for. const score = 2;console.log("Score ->", score);Output
Score -> 2
The lists at the end
The common mistakes come before the use and skip lists. In lesson 0.1, the skip list says to use a direct lookup for one exact record.
Common mistakes
What goes wrong
- Skipping the Output block. Compare your run with it, so you know the code works.
- Copying the code without reading its comments. The comments explain each block.
- Opening the code first. Read the summary and the steps before the details.
Use it when and skip it when
Is it the right tool?
Use it when
- You are new to AI systems and want a clear path through the course.
- You want to find one section quickly in any lesson.
Skip it when
- You already know the topic and want only the code. Open the code section directly.
Words to know
Terms in this lesson
- Module
- A group of lessons on one topic.
- Lesson
- One page with a fixed layout.
- Snippet
- A short piece of code that stands on its own.
- Output
- The exact text a program prints when it runs.