Community Control Panel. Hacktoberfest Contribute to Open Source. How To Code in JavaScript. Understanding Data Types in JavaScript. Understanding Arrays in JavaScript. Understanding Objects in JavaScript. Understanding Date and Time in JavaScript. Understanding Events in JavaScript. Using While Loops and Do While Loops in JavaScript.
For Loops, For Of Loops and For In Loops in JavaScript. Understanding Prototypes and Inheritance in JavaScript.
How do you comment out JavaScript code? How do you write an effective code comment? How do I comment multiple lines in Yaml? How do you comment multiple lines in selenium? How do you comment multiple lines in macro code? What is the shortcut to comment out code? How do you comment multiple lines in R? How do you comment multiple lines in R studio?
Not only will this help you remember it later on, but if you someone else views your code, they will also be able to understand the code hopefully! Another great thing about comments is the ability for comments to remove bits of code from execution when you are debugging your scripts. This lesson will teach you how to create two types of comments in JavaScript: single line comments and multi-line comments.
When you place these two slashes, all text to the right of them will be ignored, until the next line. Example Copy. Try it Live. Previous Topic Next Topic.
Learn more. JavaScript CheatSheets of Functions. JavaScript Syntax. Array Functions. Related Code Examples JavaScript. Different Bases for JavaScript Number. Use of JavaScript Functions.
0コメント