0
What's the different between console.log and document.write in javascript
2 Respuestas
+ 4
try em both, you'll see the difference, console.log() would log that in the console of your browser (F12 in chrome, there is your console.)
document.write() would write that on your webpage instead of logging in console
+ 1
console.log output on javascript console..
Where as document.write() displays output on Web page....
And pls do search before posting question
https://www.sololearn.com/discuss/1144308/?ref=app
https://www.sololearn.com/discuss/843065/?ref=app
https://www.sololearn.com/discuss/262481/?ref=app
https://www.sololearn.com/discuss/519585/?ref=app
https://www.sololearn.com/discuss/271843/?ref=app
https://www.sololearn.com/discuss/1392847/?ref=app
https://www.sololearn.com/discuss/653797/?ref=app
https://www.sololearn.com/discuss/1151516/?ref=app
https://www.sololearn.com/discuss/2097089/?ref=app