← All missions

Mission

Build a Working Calculator by Just Describing It — Live on the Web

Vibe coding 1 20 Breadth
Not rated yet0 completed
1

What this project is

You tell a free AI to write a working calculator as a single web page, save the file, open it in your browser, then put it live on the internet with a shareable link — no coding, about fifteen minutes start to finish.

2

Capabilities gained

Where else this applies

3

Copy-paste build prompt

You are a web developer. Write me a complete, working calculator as a SINGLE self-contained HTML file — all the HTML, CSS, and JavaScript in one file, nothing to install, no external links.

Requirements:
- Buttons for digits 0-9, a decimal point, and + - × ÷.
- An equals (=) button that shows the answer, and a Clear (C) button that resets it.
- A display at the top showing what I'm typing and the result.
- It must actually work when I open the file in a browser: 7 × 8 = 56, 100 ÷ 4 = 25, 3.5 + 1.2 = 4.7, and pressing C clears the display.
- Handle divide-by-zero gracefully (show "Error", don't crash).
- Make it look nice: big tappable buttons, a modern color scheme, works on a phone screen too.

Output ONLY the full HTML file, starting with <!DOCTYPE html>. Don't explain it, don't split it into pieces — give me the one file so I can copy the whole thing.
4

Copy-paste explanation prompt

In plain language, explain what you just gave me. What is an HTML file, and why does opening it in a browser turn it into a working calculator? Which part is the "look" and which part is the "math"? And tell me one thing that might go wrong when I save or open the file, so I can watch for it. Keep it short — a few sentences a total beginner would get.
5

What’s going on

6

Step-by-step instructions

Step 1 — Open a free AI (claude.ai or chatgpt.com), paste the build prompt, and send it.

You should now see a long block of code starting with <!DOCTYPE html>. Click the copy button to grab the whole thing.

Step 2 — Open Notepad (search "Notepad" in your Start menu) and paste the code in.

You should now see the code filling the Notepad window.

Step 3 — Save it as a web page: File → Save As, change "Save as type" to "All Files", and name it calculator.html — the .html is the part that matters. Click Save.

You should now see a file called calculator.html wherever you saved it. (If it saved as calculator.html.txt, you skipped the "All Files" step — redo Save As and set it.)

Step 4 — Double-click calculator.html.

You should now see your calculator open in your web browser. Try 7 × 8 = — it should show 56. That's your code running.

Step 5 — Go to app.netlify.com/drop and sign in with a free account (email or Google — no card). Drag your calculator.html file onto the drop zone.

You should now see it upload, then a live link ending in .netlify.app.

Step 6 — Click the link, or open it on your phone.

You should now see your calculator live on the real internet, at an address you can send to anyone. That's the whole loop: idea → file → live site.

Want to track your progress?

Sign up free to mark missions complete and build your roadmap.

Sign up free

Member ratings

No public comments yet.