0
What is difference between (document. write) or (console.log) when we use it separately?
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
+ 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.