Print Hello World using alert()
This will print the Hello World inside alert box on the current window.
Print Hello World using console.log()
Print Hello World using document.write()
This document.write() method will used to print the web content on the window we will use this method.