What is the difference and when to use document.write( ) function and console.log( ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference and when to use document.write( ) function and console.log( )

18th Mar 2022, 6:26 AM
Rajan K
Rajan K - avatar
3 Answers
+ 1
Raul Ramirez Got it. Thankyou.
18th Mar 2022, 6:34 AM
Rajan K
Rajan K - avatar
+ 1
Don't forget to read the comments below the lessons. document.write(...) appends text to an HTML document before the browser builds the DOM out of it. https://code.sololearn.com/W86Z6059c6Z0/?ref=app
18th Mar 2022, 10:05 AM
Solo
Solo - avatar
0
https://code.sololearn.com/W47F5iIKBA26/?ref=app
18th Mar 2022, 6:31 AM
Raul Ramirez
Raul Ramirez - avatar