Hello, you.
A tiny input can change what a page says.
Hello, future developer! 👋
What’s happening here?
JavaScript reads the input and updates the greeting. Find textContent in script.js.
A LITTLE EXPERIMENT. A REAL FIRST PROJECT.
You don’t need to know everything to build something. Try the buttons, make a change, and see what happens.
Try the demo Open the code editor →THE PLAYGROUND
Try the demo first. Then edit your own project below.
A tiny input can change what a page says.
Hello, future developer! 👋
JavaScript reads the input and updates the greeting. Find textContent in script.js.
Same page. A different feeling. Pick an accent.
A little gold goes a long way.
CSS variables hold the colours. JavaScript changes them when you choose a button.
Meet a variable: a place to store a value.
0
Every click adds one. Try reaching 10!
let count = 0 stores the number. Each click increases it, then updates the page.
Which language adds behaviour, like making these buttons work?
Take a guess. You can try again.
HTML creates the structure. CSS styles it. JavaScript responds to your actions.
YOUR TURN / MAKE A WORKING PROJECT
Edit the short sections below. The rest of each file is supplied. Try changing increment = 1 to increment = 2, then click the counter in your preview.
Updates happen after you pause typing. A valid update restarts the preview counter. Invalid edits stay in the editor while the last working preview remains available.
Change the words between the tags. Keep one <h1> and one <p>, including their closing tags. Use plain text inside them.
Try #f1a4d5 for berry or #a6e5bd for forest. You can use any three- or six-digit hex colour. Keep the braces, colon and semicolon.
Use quoted text for greeting and a whole number from 1 to 10 for increment. Keep both names and semicolons. Single or double quotes work.
This guided editor supports the two HTML elements shown, one CSS colour variable and the two JavaScript constants. It helps you practise a small change with useful feedback. It does not run arbitrary code.
The download includes these edits inside complete HTML, CSS and JavaScript files. After extracting the project, you can explore the whole code in a text editor.
Tab moves to the next control. In the file tabs, use Left and Right arrows to switch sections. Your edits stay in this tab only. Download before closing or refreshing.
Try a name, add to the counter and reset it. These controls use your code.
SOMETHING YOU MADE
Extract the ZIP, keep the files together and open index.html in a browser. It works offline, with no installation or account. The counter starts at zero when the project opens.
index.html: your heading and paragraph, plus the supplied controls.style.css: your accent and the supplied layout.script.js: your greeting and increment, plus the supplied event handlers.README.txt: how to open it and one next challenge.Next small challenge: download your project, change the increment in script.js, save it and refresh index.html. Then try adding a second paragraph.