Learn

We write Emojicode programs in files with the extension .emojic or .πŸ‡. Here in the code editor, we have a file named hello.emojic. It will also work if it’s named hello.πŸ‡.

Almost all the code in an Emojicode program will live inside a 🏁 block. A block is a collection of code. The 🏁 block indicates all the code that should run when the file is executed.

Within our larger program, we can indicate one or more blocks of code with πŸ‡ πŸ‰ code blocks:

  • πŸ‡ to indicate the start of the code block
  • πŸ‰ to indicate the end of the code block

So a basic Emojicode file will have the following structure:

🏁 πŸ‡
  Some code goes here
  More code goes here
πŸ‰

Let’s see some Emojicode in action!

Instructions

1.

The provided program has a single line of code πŸ˜€ πŸ”€Hello, world!πŸ”€β—οΈ.

This lives within a πŸ‡ πŸ‰ code block. We will explain exactly how that line works soon, but for now, press Run to see the program in action.

What message appeared in the terminal?

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?