+ 1
I can use console.log instead of document.write? Is this the same thing?
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 😀
+ 2
they are not the same thing