Why should we only use document.write() for debugging | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why should we only use document.write() for debugging

In the lesson for JS we are told that document.write(); should really only be used for debugging, why is this?

7th Dec 2016, 7:46 PM
Steve
1 Answer
+ 2
You should use DOM (innerHTML) to be more precise, it will be explained in the following lessons
7th Dec 2016, 7:51 PM
Nahuel
Nahuel - avatar