+ 2
hi fellas..can i use console.log ?
instead of using. documment.write ,i prefer to use console.log?? same thing?
3 Answers
+ 5
No. Console.log doesn't write to the document.
+ 1
console.log writes only to the console (like if you wanna test using chrome "inspect" feature or test in Node) while document.write writes in the HTML document and shows on the screen
+ 1
no you cant