+ 10

What is the different between console.log and document.write?

....

26th Jun 2019, 10:48 AM
Tha Zin
5 Réponses
+ 8
document.write will show the output in page body. console.log will show the output in browser console, you can find them in developer options
26th Jun 2019, 10:52 AM
Taste
Taste - avatar
26th Jun 2019, 12:13 PM
Gordon
Gordon - avatar
+ 3
In the first the output is there added to the console and in the latter to the browser 🤗
28th Jun 2019, 5:39 AM
Sanjay Kamath
Sanjay Kamath - avatar
- 5
Hello how are you
26th Jun 2019, 7:20 PM
Brahim Lhajjam