Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Multi-line JavaScript Comments</title> </head> <body> <h1 id="myHeading"></h1> <p id="myParagraph"></p> <script> /* This is a multi-line comment. You can't see this! */ document.getElementById("myHeading").innerHTML = "Multi-line JavaScript Comments"; document.getElementById("myParagraph").innerHTML = "I have multi-line comments!"; </script> </body> </html>