0

Javascript

Why can't we use console.log instead of document.write in Javascript?

1st Jul 2021, 2:47 AM
Jasmine Yang
Jasmine Yang - avatar
3 Réponses
+ 2
Document write adds stuff visibly on the web page. Console log hides stuff where you need to open a special browser window. For real sites, the first one affects users directly, so be aware of that. - Quora
1st Jul 2021, 6:44 AM
Abhiyantā
Abhiyantā - avatar
+ 1
Two different things
1st Jul 2021, 3:05 AM
Ginfio
Ginfio - avatar
0
read about it . Or it's very clear from the name itself. document and console.
1st Jul 2021, 2:57 AM
Hima
Hima - avatar