+ 1

I can use console.log instead of document.write? Is this the same thing?

25th Aug 2017, 9:23 PM
Arthur Regis
Arthur Regis - avatar
2 odpowiedzi
+ 7
console.log writes to console, so is useful for js debug... document.write writes to document, so it's useful to dynamically edit document contents... so no, they are not the same things 😀
25th Aug 2017, 9:43 PM
Luca
Luca - avatar
+ 2
they are not the same thing
25th Aug 2017, 11:13 PM
Sergio Araya Villalobos
Sergio Araya Villalobos - avatar