Writing into an HTML element, using innerHTML
Writing into the HTML output using document.write()
Writing into an alert box, using window.alert()
Writing into the browser console, using console.log()
The document.write() method should only be used for testing.
For debugging purposes, you can use the console.log() method to display data.