When using JavaScript in HTML, console.log(); is replaced with document.write();. But console.log(); is still perfectly usable, but I don't exactly know when it would be used, seeing as it doesn't print anything. And no site I've visited has had any real information about this.
document.write("Thanks!!");