+ 2
Sololearn or encode
I am learning js in sololearn, but when opened js in encode it was different i. e to print something we us documents. Write in sololearn and in encode we us log,,, now wich is write
1 Odpowiedź
+ 5
Both is write
But document.write() is used for to write text inside <html> (equal to document.documentElement.innerHTML+="text")
But console.log() just for write to console
console.log() is Mostly used to test something little