xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to add a multi-line comment in JavaScript
JavaScript Online Editor
Run Code
More JavaScript Sample Codes
<!DOCTYPE html> <html> <head> </head> <body> <h1 id="myHeader"></h1> <p id="myParagraph"></p> <!--Script tag is added to write JavaScript code inside it--> <script> /* Example of multi-line comment Comments are added to your code to provide explanations, documentation, or to temporarily disable certain lines of code during testing or debugging. */ document.getElementById("myHeader").innerHTML = "How to add a multi-line comment in JavaScript"; document.getElementById("myParagraph").innerHTML = "You can use /* and */ to add multi-line comments in Javascript. Anything between /* and */ are considered comments and are ignored by the JavaScript interpreter. You can also use /* and */ for single-line comment."; </script> </body> </html>