Answer by canon for Stack Snippets - Using alert() vs document.write() vs...
I posted an answer on meta.SE which is related. Here's the relevant bit:Why should we bother avoiding document.write() and alert()?Both assume a browser environment even if we're demonstrating a purely...
View ArticleAnswer by Travis J for Stack Snippets - Using alert() vs document.write() vs...
It just depends on the question. Sometimes the issue is page structure, in which case showing the properly formed structure is relevant and doesn't need a log or alert.Sometimes the issue is related to...
View ArticleStack Snippets - Using alert() vs document.write() vs console.log()
Is it bad practice to use either alert(), document.write or console.log() in Stack Snippets? I personally find alert() quite annoying, and console.log() takes time to see the output (you need to open...
View Article
More Pages to Explore .....