See that? Anything we put in the parentheses of console.log() displays in the browser console. What we pass to document.write() displays on the web page.
console.log()
document.write()
Didn't we already use document with a different command?
document