+ 1
I found console.log() being used to get result instead of document.write() in other tutorials. Whta is difference between these?
3 Réponses
+ 2
document.write() writes to the page/document while console.log() writes to the console.
+ 1
console in the sense u can inspect the HTML by right clicking on the page and select the inspect element and then go to console tab....before publishing the content on live they use console outputs.so that they can understand how the code is working
0
thanks