+ 3
Is "document.write" the same thing as (console.log)?
It took a JS course on codecademy.com and they used console.log to print out. Here they use document.write. Do they serve the same purpose??? Thanks! ;-)
2 Answers
+ 7
No
console.log() prints the data in the browser's console.
and document.write() prints on the browser's window .
go to developer tools by pressing fn + f12 (windows pc)and there you can see the console.
+ 2
Thanks! That makes so much sense!