Probably the simplest form of code is a comment. Comments can be used to structure your program and enhance its human readability. There are two main types of comments.
These comments are best utilized for commenting out existing code. The entire line following the --
will become a comment.
Using single-line comments for purposes other than quickly commenting out code is not recommended! The --
symbol only initiates a comment when used at the very beginning of the line. It is considered best practice to utilize multi-line comments whenever possible.
A much better way to use comments is with multi-line comments. Anything between /*
and */
will be considered a comment.
In the next chapter, we will learn about variables.