Mini-Lesson Documentation Lesson

Scenario

Mini-lesson documentation explains one concept in a focused way. It should give enough context for the reader to understand the idea and enough example code for the reader to use it.

A mini-lesson works best when it avoids extra filler. The writing should define the concept, explain when it is used, and show a small example that matches the topic.

Code Runner Challenge

Mini-Lesson Documentation Lesson

View IPYNB Source
%%js

// CODE_RUNNER: Mini-Lesson Documentation Lesson

const miniLesson = {
  topic: "Loops",
  purpose: "repeat an action for each item",
  exampleReady: true
};

console.log(miniLesson.topic + ": " + miniLesson.purpose);
Lines: 1 Characters: 0
Output
Click "Run" in code control panel to see output ...

Reading the Scenario

The goal is not to list everything about the concept. The goal is to make one useful idea clear enough that someone can apply it in their own code.