Lesson 1: Introduction to Computer Science
Understanding the building blocks of computing
A computer is a machine that:
Think of it as a very fast calculator that can remember things!
This is how all the components work together to process information!
Modern CPUs can execute billions of instructions per second!
Your phone's CPU is more powerful than room-sized computers from the 1960s
Think of RAM like your desk when doing homework - you keep papers you're actively using close at hand
Like a filing cabinet - lots of space for long-term storage, but takes time to find what you need
Understanding how computers measure and organize information:
Smallest unit: 1 or 0
Like a single light switch
8 bits together
Can store 1 character (A-Z, 0-9)
CPU's natural data size
32-bit or 64-bit chunks
2 words together
For bigger numbers/addresses
Click to see how your computer finds data:
Memory Address 1000: 01001000 (Letter 'H')
Memory Address 1001: 01100101 (Letter 'e')
Memory Address 1002: 01101100 (Letter 'l')
Memory Address 1003: 01101100 (Letter 'l')
Memory Address 1004: 01101111 (Letter 'o')
Each byte has its own address, like houses on a street!
Computers only understand two states:
Like a light switch: 💡 or ⚫
Everything is made from combinations of 1s and 0s:
Letter 'A' = 01000001
Number 5 = 00000101
Your favorite emoji = lots of 1s and 0s!
Open your computer's system information:
Find and write down:
Let's count to 10 in binary!
Decimal → Binary
0 → 0000
1 → 0001
2 → 0010
3 → 0011
4 → 0100
Can you figure out 5-10?
When you write JavaScript, it eventually becomes instructions for the CPU!
From Hardware to Software
Ready to start creating? 🚀