Comments are lines of code that JavaScript will intentionally ignore. Comments are a great way to leave notes to yourself and to other people who will later need to figure out what that code does.
There are two ways to write comments in JavaScript:
Using // will tell JavaScript to ignore the remainder of the text on the current line. This is an in-line comment:
// This is an in-line comment.
You can make a multi-line comment beginning with /* and ending with */. This is a multi-line comment:
/* This is a
multi-line comment */
On this page of the site you can watch the video online How to Comment JavaScript Code with a duration of hours minute second in good quality, which was uploaded by the user SVGIE 06 August 2023, share the link with friends and acquaintances, this video has already been watched 151 times on youtube and it was liked by 2 viewers. Enjoy your viewing!