π Comments
Published Jul 23, 2021Updated May 15, 2024
Contribute to Docs
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.
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.ππ
Example
Hereβs a whole Emojicode program with comments:
ππEmojicode is created by:Theo Weidmannπππ ππ π€Hello World!π€βοΈπ Output: Hello World!π
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.