Codecademy Logo

Hello World

File Structure

The basic structure every program must have is 🏁, after which comes a code block (begins with πŸ‡ and ends with πŸ‰).

Source code files must have the extension .emojic or .πŸ‡.

🏁 πŸ‡ πŸ‰


πŸ˜€ and ❗️ is used to display output.

🏁 πŸ‡ πŸ˜€ πŸ”€Hello, world!πŸ”€β—οΈ πŸ‰

Program Execution

In Emojicode, the program execution order goes from left to right; from top to bottom.

🏁 πŸ‡ πŸ˜€ πŸ”€Hola!πŸ”€β—οΈ πŸ˜€ πŸ”€ΒΏCΓ³mo estΓ‘s?πŸ”€β—οΈ πŸ‰

Single-line Comments

In Emojicode, single-line comments are made with πŸ’­. Any text after the πŸ’­ that is on the same line is not executed.

πŸ’­ The next line outputs "Hello" πŸ˜€ πŸ”€HelloπŸ”€β—οΈ

Multiline Comments

Multiline comments are created with πŸ’­πŸ”œ and πŸ”šπŸ’­. Any text in between is not executed.

πŸ’­πŸ”œ This is a comment. It will be ignored by the compiler. πŸ”šπŸ’­