what is different syntax of document.write() and console.log() ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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