helloWorld();
The last best practice we will look at is around commenting your code. Comments are a key part of a programmer’s role. Comments in your JavaScript are snippets of text where a developer will explain a part of the code in plain English. Comments are wrapped in tags to highlight them as non-executable. Comments are never executed by the JavaScript engine; it simply skips right past them as if they don’t exist.
There are many ways to specify and format a comment. Let’s look first at line comments.
A line comment is signified by a prefixing //. Any text after the // and before the end of the line, will be treated as a comment. There are two ways we can make use of this.
Developers can describe a statement on the line directly above the statement like so: