+ 5

Pls what's the difference between JavaScript: console.log and Document.write

JavaScript

22nd Sep 2021, 7:00 AM
Suh Joy
Suh Joy - avatar
1 Réponse
+ 3
document.write() Will REPLACE THE CURRENT DOCUMENT CONTENTS. While, console.log() Will ADD TEXT TO THE JS CONSOLE..
28th Sep 2021, 3:53 PM
Sancho Godinho
Sancho Godinho - avatar