0

What is difference between (document. write) or (console.log) when we use it separately?

21st Nov 2021, 5:51 AM
kumar aarav
kumar aarav - avatar
2 Answers
+ 3
You should first search for those types of obvious & often asked questions. https://www.sololearn.com/Discuss/2887847/?ref=app https://www.sololearn.com/Discuss/2685210/?ref=app
21st Nov 2021, 6:21 AM
zexu knub
zexu knub - avatar
+ 1
kumar aarav As commands names says of what they do: 📌- document.write() - Writes something on webpage/document (visible on HTML page). Used for page content generation. 📌- console.log() - Logs/outputs something in browsers console window (not visible on HTML page). Used for debugging.
22nd Nov 2021, 8:08 PM
Ilyas Bakirov
Ilyas Bakirov - avatar