bubblecode

A new beginner-friendly programming language.

Try it now

Edit the code below and click Run. Everything executes in your browser — nothing is sent to a server.

playground.bubble

Why bubblecode?

A language designed to be read, not deciphered.

Aa

English-like syntax

put 42 into answer instead of answer = 42. Code reads like instructions, not symbols.

>_

Runs in the browser

Powered by WebAssembly. Write and run programs instantly — no downloads, no terminal, no configuration.

?

Interactive programs

Use ask to prompt for input. Build games, quizzes, and conversational programs.

f(x)

Functions & recursion

Define functions and handlers. Supports recursion, closures, and all the building blocks of real programs.

#

Rich built-ins

Math functions, string manipulation, random numbers, formatting — batteries included.

Live documentation

Every doc page has editable, runnable code examples. Learn by doing, right in your browser.

Two ways to run your code

Whether you want to experiment one line at a time or run a full program, bubblecode has you covered.

>_

Interactive mode

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.

> put 5 + 3 into result
> say result
8

Great for: quick experiments, checking how something works, learning step by step.

Run a program

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.

-- greeting.bubble
ask "What's your name?" into name
say "Hello," && name & "!"

Great for: building complete programs, saving your work, creating something to share.

Try the REPL

Type one line at a time and see results instantly. Use the up arrow to recall previous commands.

>_bubblecode REPL
Type a line of bubblecode and press Enter.
>

A taste of bubblecode

Simple syntax, real programs. Click Run on any example.

Variables & output

variables.bubble

Control flow

control_flow.bubble

Loops

loops.bubble

Interactive input

interactive.bubble

Interactive game

tictactoe.bubble

Write your own program

Start from scratch. Write anything you want, then click Run to see it come to life.

Ready to start?

Follow the guided learning path — from your first line of code to building real programs.

Start learning