Edit the code below and click Run. Everything executes in your browser — nothing is sent to a server.
playground.bubbleA language designed to be read, not deciphered.
put 42 into answer instead of answer = 42. Code reads like instructions, not symbols.
Powered by WebAssembly. Write and run programs instantly — no downloads, no terminal, no configuration.
Use ask to prompt for input. Build games, quizzes, and conversational programs.
Define functions and handlers. Supports recursion, closures, and all the building blocks of real programs.
Math functions, string manipulation, random numbers, formatting — batteries included.
Every doc page has editable, runnable code examples. Learn by doing, right in your browser.
Whether you want to experiment one line at a time or run a full program, bubblecode has you covered.
Also called a REPL
Type a line, see it run immediately. Perfect for trying things out, testing ideas, or learning new commands. Think of it like a conversation with the computer — you say something, it responds right away.
Great for: quick experiments, checking how something works, learning step by step.
Write it all, then run it
Write your entire program first, then hit Run to execute everything at once. This is how you build real projects — games, quizzes, tools, and more.
Great for: building complete programs, saving your work, creating something to share.
Type one line at a time and see results instantly. Use the up arrow to recall previous commands.
Simple syntax, real programs. Click Run on any example.
variables.bubblecontrol_flow.bubbleloops.bubbleinteractive.bubbletictactoe.bubbleStart from scratch. Write anything you want, then click Run to see it come to life.
Follow the guided learning path — from your first line of code to building real programs.