Step 9 of 15 · E · Locking the type
The type stamp
score=250
Now: let's lock the TYPE this box accepts.
Step 1 / 9idle
Watch the stamp slam onto the box. From now on, only this kind of value belongs.
The stamp tells the box: this is a number box. No words. No yes/no. Just numbers.
**Programmers call this stamp a *data type* — or just type** for short.
So when you hear the word type in code, picture this stamp on the box.
Some types are strict — they refuse anything that does not match.
Some boxes have no type — they accept any kind of value.
A typed box is easier to trust — you always know what is inside.
You will sometimes hear this called type safety — it just means the box and its contents always match.
From here on, the words stamp and type mean the same thing — one paints the picture, the other is the real word.
Check yourself
Match the pairs
Match each box to the **data type** it should wear:
