what is different syntax of document.write() and console.log() ?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

what is different syntax of document.write() and console.log() ??

different of output syntax

5th Jul 2016, 4:05 AM
Alexander Feng
Alexander Feng - avatar
1 Réponse
+ 1
Did you mean what's the difference between the two of them? document.write outputs to the HTML document. console.log outputs (or logs) something to the browser's console and is used for debugging.
5th Jul 2016, 1:56 PM
ZinC
ZinC - avatar