The JavaScript comments are meaningful way to deliver message. It is used to add information about the code, warnings or suggestions so that end user can easily interpret the code.
The JavaScript comment is ignored by the JavaScript engine i.e. embedded in the browser.
Advantages of JavaScript comments
There are mainly two advantages of JavaScript comments.
To make code easy to understand It can be used to elaborate the code so that end user can easily understand the code.
To avoid the unnecessary code It can also be used to avoid the code being executed. Sometimes, we add the code to perform some action. But after sometime, there may be need to disable the code. In such case, it is better to use comments.
/*******************************************\
HTML Tutorials - https://www.youtube.com/watch?v=5bl0WBYpHwY&list=PLAsPrIlN9FQc8lM1vSDAEaad6ATR6whMd
CSS Tutorials - https://www.youtube.com/watch?v=co7hE1SETtk&list=PLAsPrIlN9FQcE--Ne4DoevQC0b4DGccMu
JavaScript Tutorials - https://www.youtube.com/watch?v=gqkZWflk1n0&list=PLAsPrIlN9FQfd_svxJfnZH4gCktAByogp
HTML and CSS - https://www.youtube.com/watch?v=TUIcf_c2Dc4&list=PLAsPrIlN9FQer6BxDBZPtT5JXHaQZNA9g
/*******************************************\
Tags :
javascript comments best practices
multiline comment java
comment in java
html comments
javascript function comments
javascript array
css comments
what is the correct way to write a javascript array?