New course! Every coder should learn Generative AI!
Try a free lesson+ 5
Pls what's the difference between JavaScript: console.log and Document.write
JavaScript
1 Answer
+ 3
document.write() Will REPLACE THE CURRENT DOCUMENT CONTENTS.
While, console.log() Will ADD TEXT TO THE JS CONSOLE..