Difference between console.log and document.write? | Sololearn: Learn to code for FREE!

+5

Difference between console.log and document.write?

4/17/2018 8:56:19 AM

Haider 🥀

1 Answer

New Answer

+5

document.write is straightforwardly used to display HTML text within your page whilst console.log is rather used for testing purposes where it displays whatever it was passed to it within the browser's JavaScript console.