Comp 110 TS Comments

Comments

A comment beings with a // or /* and is ignored by the computer when it runs your code. Comments are human-readable descriptions of a certain block of code. They make your code more readable, and make it much easier to go back to your code and remember what you were trying to do. Comments can be a huge help if you are working on a piece of code that you need more than one sitting to complete.

Comments can also be used to block off a section of code that isn't quite working yet to allow your program to run without you having to delete that unfinished section from your code.

Below are examples of how each style of comment would look.

let main = async () => {

    // This is a single-line comment 
   
    print("I understand... nothing -Michael Scott");
   
    /* This is a 
        multi-line comment */
};