How to write on a web page javascript

JavaScript
document.write("Hello") !-- Hello for example <!DOCTYPE html>
<html>

<body>

<h1>My First Web Page</h1>

 <p>My first paragraph.</p>

 
<script>
document.write(5 + 6);
</script>



</body>

</html>
 document.write("put your text here!");
Source

Also in JavaScript: