Lesson 2 of 6 · 9 min · 1 hands-on step

What a Computer Actually Is

CPU, memory, storage and programs, explained with zero jargon.

A computer is an instruction-follower

Strip away the shiny case, and every computer (laptop, phone, game console, the servers behind Google) does the same thing: it follows instructions, one at a time, incredibly fast. Billions per second.

A program is just a list of those instructions. Code is how humans write them down.

The four main parts

Part What it does Everyday comparison
CPU (processor) Runs instructions A chef following a recipe
Memory (RAM) Holds what's being worked on right now; erased when power is off The kitchen counter
Storage (SSD) Keeps files permanently The pantry
Input/Output Keyboard, screen, network Orders coming in, plates going out

When you open an app, it's copied from storage into memory, and the CPU runs its instructions.

Why everything is 0s and 1s

Inside, a computer is made of billions of tiny switches that are either off (0) or on (1). Everything (numbers, text, photos, music) is stored as patterns of 0s and 1s. This is called binary.

You'll almost never write binary yourself. That's what programming languages are for:

You write:        console.log(2 + 2)
The computer runs: 0100100001100101 01101100...

A programming language is a way to write instructions that humans can read, which tools then translate into what the machine runs.

The internet, in one sentence

The internet is computers sending messages to other computers. When you open a website, your computer asks another computer (a server) for the page, and it sends it back. You'll build both sides later in the program.

Your takeaway

You don't need to be a "math person" or a "computer person." You need to be able to write clear instructions, and you've been giving instructions your whole life. Now you'll learn the language computers understand.

🧪 Practice

Computers are incredibly fast calculators. Ask yours to do some math!

Change the code so it prints the result of 365 × 24: the number of hours in a year.

In code, multiply is written with a star: *

JavaScript
Loading editor…

Output appears here. Press Run or Ctrl/⌘ + Enter.

✅ Check your understanding

  1. Which part of a computer runs the instructions in your program?

  2. What happens to data in memory (RAM) when the computer turns off?

  3. What is a program?

Create a free account to track your progress.