Lesson 3 of 4 · 6 minutes

Memory: where a computer keeps things

While a program runs, the computer needs somewhere to keep things. That place is called memory.

Picture a shelf of labelled boxes. Each box has a name. Inside is a value: a piece of information such as a number or text. You can write a value into a box and read it later.

Memory is temporary. When the program stops, the boxes empty. This is why an app must save important work somewhere more permanent.

Three labelled memory boxes, with the number 25 placed into the box named age

Memory holds values in named places while a program runs.

Quick check

What is memory, in simple terms?

Choose one answer.

Does memory keep values forever?

Choose one answer.

You now know where a computer keeps things while it works — and why it forgets them when it stops.