Following JS Code Consists of different Type of Statements -
<script type="text/javascript">
var i = 10;
if (i < 10) {
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
document.write("<p>This is another paragraph.</p>");
}
</script>
What are different Type of statements written inside above JS.