In programming, we use comments to comment code literally or to deactivate code without deleting it. There are two different main types of comments, the single line and multi line comments. In this course, I will use the single line comment in most of my demonstrations.
Single Line Comment
Now, let's look into multi-line comment. It is generally used to comment out multiple lines of code that we don't want to be executed for some reason.
In VSCode or in the majority of the code editors, you use the Command + / or Ctrl + / shortcut to comment out code. According to the necessity, the editor will care what type of commenting method to use.