Every statement ends
Like a full stop at the end of a sentence. Without it, the compiler cannot tell where your statement stops.
Emoji Script replaces the keywords of a programming language with emojis. Everything else stays the same: variables, conditions, loops and statements read from top to bottom. This page gathers every symbol of the language, what it replaces and how to put them together.
Like a full stop at the end of a sentence. Without it, the compiler cannot tell where your statement stops.
Everything between the open padlock and the closed padlock belongs to the condition or to the loop.
Everything between these two emojis is printed as is, emojis included.
They wrap a condition or whatever you want to print.
It sits between the condition and the block that follows it.
Variables are written with regular letters: score, age, message.
On the left the emoji, in the middle its equivalent in a classic language, on the right what it does.
0οΈβ£ 1οΈβ£ 2οΈβ£ β¦ 9οΈβ£0 1 2 β¦ 9The digitsβΊοΈ.The decimal pointπ―trueTrueπ§’falseFalseπ»nullEmpty valueπ¬ β¦ π€«" β¦ "A piece of textβ+Addition, and joining two textsβ-SubtractionβοΈ*Multiplicationβ/Divisionβ‘οΈ=Store a value in a variableπ€==Equal toπ
!=Different fromπͺ>Greater thanπ€<Less thanπ€ifIf the condition is trueπelseOtherwiseπwhileAs long as the condition is trueπ β¦ π{ β¦ }Start and end of a blockπ β¦ π( β¦ )Parenthesesπ€ β¦ π₯[ β¦ ]Bracketsπ£οΈprint(β¦)Display a resultπlen(β¦)Count the characters of a textπ;End of a statementπ:Separates the condition from its blockπΉ,Separates two itemsscoreβ‘οΈ7οΈβ£π
π£οΈπscoreππ
The arrow stores the value in the variable. The variable name is written with regular letters.
ageβ‘οΈ1οΈβ£8οΈβ£π
π€πageπͺ1οΈβ£7οΈβ£πππ
π£οΈππ¬Access granted β
π€«ππ
ππππ
π£οΈππ¬Access denied βπ€«ππ
π
If the condition between the moons is true, the first block runs. Otherwise the π block does.
iβ‘οΈ1οΈβ£π
ππiπ€6οΈβ£πππ
π£οΈπiππ
iβ‘οΈiβ1οΈβ£π
π
As long as i is smaller than 6, the block runs. The last line moves the counter forward; without it the loop would never stop.
messageβ‘οΈπ¬Emoji Script π€―π€«π
π£οΈπππmessageπππ
π counts characters. Careful: an emoji often takes two characters for the browser.
You opened a text with π¬ without closing it with π€«. The compiler then reads the rest of the script as text.
A character is not part of the language. It is often a lookalike emoji, for example π instead of π, or a plain digit stuck to an emoji.
Your π loop never ends. Check that the tested variable really changes inside the block, for example with iβ‘οΈiβ1οΈβ£π.
Some names reserved by the browser are blocked for security reasons. Pick another variable name.
The compiler is free, accountless and runs entirely in your browser.