A quick look at the example of document.write() program.
<script> document.write("Hello Test!"); </script>
The above example has been used to print Hello Test! text on the browser.