Note: Using semicolons makes it possible to write multiple statements on one line.
Each statement is executed by the browser in the sequence they are written.
This example will write a heading and two paragraphs to a web page: Example
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");