Comments are used to explain code, and may be used for when you need to change something at a later time.
They are ignored by browsers.
Comment syntax: // Comment here
How to include JavaScript in HTML?
Choose one of the two options below to insert JS code in an HTML document.
1. Insert it into your document between script tags (<script> and </script>).
2. Include the following code anywhere in your HTML document, but replace "myscript.js" with the location of your script: <script src="myscript.js"></script>