+ 2

hi fellas..can i use console.log ?

instead of using. documment.write ,i prefer to use console.log?? same thing?

21st Jul 2016, 12:53 AM
Reinier Blanco (Reycuban)
Reinier Blanco (Reycuban) - avatar
3 Answers
+ 5
No. Console.log doesn't write to the document.
21st Jul 2016, 6:02 AM
ZinC
ZinC - avatar
+ 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
22nd Jul 2016, 2:26 PM
Dr.Na'el Hariri
Dr.Na'el Hariri - avatar
+ 1
no you cant
3rd Sep 2016, 12:37 PM
Akash Jaiswal
Akash Jaiswal - avatar