+ 2

JScript

What is the difference between console.log() and document.write()

5th Jul 2019, 2:11 PM
Enahoro Godwin
Enahoro Godwin - avatar
1 Respuesta
+ 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
5th Jul 2019, 2:45 PM
ReimarPB
ReimarPB - avatar