Why should we only use document.write() for debugging | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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