Start with blocks: Scratch and Code.org
Block coding teaches the same big ideas as 'real' code with no typos: events, loops, conditions and variables. A first step for younger learners and their teachers.
Why start with blocks
Block-based tools let you snap commands together like puzzle pieces, so you can't make spelling or bracket mistakes. Free tools such as Scratch (from MIT) and Code.org are used in schools around the world. The ideas you learn there are exactly the ones professional code uses, which makes the jump to text code and AI building much easier later.
The big ideas you'll use
- Events: 'when the green flag is clicked' or 'when this sprite is clicked' starts a script.
- Sequence: blocks run in order, top to bottom.
- Loops: 'repeat 10' or 'forever' runs blocks again and again.
- Conditions: 'if touching the edge, then bounce' makes decisions.
- Variables: a 'score' that goes up when you catch something.
From blocks to text
Every block has a text-code twin. 'repeat 10' is a loop like for (let i = 0; i < 10; i++) in JavaScript; 'if score > 5' is an if statement; 'when green flag clicked' is an event listener; a sprite's 'score' is a variable. Once a learner can build a small game in blocks, they can read the same game written in JavaScript, and describe it clearly to an AI builder.
AI and younger learners
Many AI tools set minimum ages (often 13 or 18) and schools have their own rules, so check before students sign up and let an adult lead. Use AI to explain ideas and give hints rather than to build the whole project, and keep personal details out of chats. Blocks plus a curious adult is a great first coding setup.
Key terms
- Sprite
- A small image or character that moves around in a game, like the player or a falling star.
- Loop
- Code that repeats for each item in a list or until something changes.
- Conditional (if/else)
- Code that runs only when something is true, otherwise something else.
- Variable
- A named value in code, like const price = 20.
- Event listener
- A function that runs when something happens on the page, like a click or a form submit.
- JavaScript
- The programming language that makes web pages interactive.
Try it
Build and translate a tiny game
- In Scratch, make a sprite move with the arrow keys using 'when key pressed' blocks.
- Add a 'score' variable that goes up when it touches a second sprite.
- Write down which block is the event, the loop, the condition and the variable.
- Ask an AI to show the same game in JavaScript and match each block to a line.
Ask an AI tutor about this guide
Copy a prompt into ChatGPT, Claude or Gemini to go deeper. Check what it tells you against the guide.
- Explain it like I'm 12
- Quiz me (5 questions, one at a time)
- Show me a real example for my situation
- What do beginners get wrong?
Knowledge check
Five questions. Get 4 right to earn the Block Builder badge. You can retake it as often as you like.
Question 1 of 5
Finished the How software works guides? Take the How software works track test for ten mixed questions.
My notes
Write what clicked, what confused you, and what you want to try. Saved in this browser only.
Learn it live
Digital Builders University runs small live workshops where you build something real with an instructor beside you, starting with Vibe Coding 101.
See workshopsOfficial sites
Last reviewed November 25, 2026. AI tools change fast; check each tool’s own site for current features, plans and prices.
