Programming Code Center(PCC)
[JS]

(PCC)::[How-to-use-Single-line-comments-in-JavaScript]::[js]

File Name : index.html

<!DOCTYPE html>
<html>
<body>

<h1 id="myH"></h1>
<p id="myP"></p>

<script>
// Change heading:
document.getElementById("myH").innerHTML = "JavaScript Comments";
// Change paragraph:
document.getElementById("myP").innerHTML = "My first paragraph.";
</script>

</body>
</html>

Output :