Skip to content
Your progress

Checking your sign-in…

Who's learning?

Each profile keeps its own read lessons, badges, streak, and practice scores on this device.

Lesson 9 of 11

The big picture

Show on a big screen

4 min

Text size

The eight ideas, in order.

Programming Proper I — eight ideas, in order
IdeaRememberExample
Typing it outOne line, one instruction, top to bottom.Swap two lines, order changes
let and constlet refills. const refuses and names the box.seats stays 32
Four kinds of valueNumber, text, true or false, nothing.12 vs "12"
What the signs doArithmetic on numbers. + joins when the other side can be written out.163 → "163 rupees"
A fork in the lineif runs only when true. else catches the rest.60 ≥ 60 is true
Until it stopswhile checks first, then runs, then checks again.96 → 6 in 4 rounds
Once for eachfor ... of runs once per item in the list.3 stops, 3 turns
What the message saysA line number, and what could not be done there. The cause may sit above it.line 3, missing let

A machine does exactly what you typed, and nothing else. So its message tells you where it stopped.

Next comes Computational Thinking III: Functions & Debugging. One set of lines gets a name. A wrong program is checked in halves, not read from the top.