Time to meet code — instructions a computer follows, one exact step at a time.
Here's some code a code-generation tool might create if you asked for a simple webpage (this is an illustrative example, not a live tool). Each round highlights one line — guess what it does before checking the answer.
Notice how each line does ONE specific job? That's how code works — small, exact instructions, stacked together to build something bigger.
Code is a set of step-by-step instructions written in a language a computer can follow exactly. When you ask an AI code tool to build something, it generates the code the same way a chatbot generates text — using patterns it learned. But once the code is written and you run it, it's different from a chatbot reply: the computer follows those exact instructions in order, every single time, with no guessing.
You don't need to memorize an entire coding language to start reading it. Look for words that hint at meaning — like "button," "image," or "heading" — and read from top to bottom, one instruction at a time.
Just like with prompts, being specific about what you want — "a webpage with a heading, a short paragraph, and one button" instead of just "make me a webpage" — gets you something much closer to what you pictured.
This activity happens in your own code generation tool — not on this page.
Want to plan what you'll ask for first? Draft your request here.
Saved right in this browser, on this device — it's just for planning, and never sent anywhere.
Running or opening any AI-generated code, and installing any new tools or programs, should always be done with a grown-up present — even if it looks simple.
What did you ask your code tool to build, and what was one line of code you could actually understand? Was anything surprising?
This is saved right in this browser, on this device — it's never sent anywhere.
10 questions, picked at random from a bigger question bank — so if you take it again, you'll likely see a different mix. Let's go!
You'll learn that mistakes in code are normal — and how to fix them.