+ 1

Someone please help...whats the difference between document.write() and console.log(); in accordance with JS

.

1st Jun 2020, 5:13 PM
Jurence
Jurence - avatar
2 ответов
+ 5
document.write() displays data in the browser window. console.log() logs data to the console. Both are used to assist coders during development. Although console.log() is the more popular option.
1st Jun 2020, 8:11 PM
Ryan Els
Ryan Els - avatar
0
Please tag a specific language to improve thread's context clarity 👍
1st Jun 2020, 5:46 PM
Ipang