+ 2
JScript
What is the difference between console.log() and document.write()
1 Resposta
+ 2
document.write() directly adds text to the HTML
console.log() writes to the console which is not normally visible on a browser. It is used mostly for debugging