A comment is a piece of text within a program that is not executed. It can be used to provide additional information to aid in understanding the code.
There are two types of comments in Emojicode.
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 are created with
🔚💭. Any text in between is not executed.
💭🔜This is a comment.It will be ignored by the compiler.🔚💭
Here’s a whole Emojicode programe with comments:
💭🔜Emojicode is created by:Theo Weidmann🔚💭🏁 🍇😀 🔤Hello World!🔤❗️💭 Output: Hello World!🍉
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Learn Emojicode on Codecademy
Computer ScienceLooking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
Includes 6 Courses
With Professional Certification