Fill: TDD First Step
Fill in the Blank Medium
Question
In TDD, the first phase is called ___ (write a failing test).
Hint
The color associated with failing tests.
Explanation
The correct answer is Red. The TDD cycle is Red-Green-Refactor. Red is the first phase where you write a test for the desired behavior before the implementation exists, so the test fails (red). Then you write code to make it pass (green), and finally refactor.
Related Resources
Related Lessons
- Test-Driven Development
The TDD workflow.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.