The desk and the filing cabinet
Imagine a scholar working at a desk. The desk holds the few papers in use right now; the filing cabinets hold everything else, but fetching from them is slow. A computer organises memory the same way. RAM — random-access memory — is the desk: quick to reach, modest in size, and wiped clean when the power goes off.
Storage — a hard drive or solid-state drive — is the filing cabinet: slower, vastly larger, and permanent. When you open a photo, the computer carries it from storage onto the desk of RAM; when you save, it files the changed version back.
Why forgetting is a feature
RAM forgets because of how it is built: each bit is a tiny electrical charge or a miniature switch that must be constantly powered or refreshed. That design makes it fast and cheap per quick grab — and useless as an archive, by design.
Storage media keep their patterns without power: magnetic regions on a spinning disc, or trapped charges in the cells of a solid-state drive. The trade is speed. RAM answers in billionths of a second; even the fastest storage is a slowcoach beside it, which is why computers juggle both.
Layers all the way down
In truth there are more layers: tiny, even faster memories sit inside the processor itself, holding the numbers needed this very instant. Engineers call the whole arrangement the memory hierarchy — a pyramid of speed versus size.
Every freeze, every 'not enough memory' warning, every quick-loading game is this pyramid at work: a machine forever tidying its desk so the next task has room.

