Message from JavaScript discussions

July 2017

— Please what is the different between document.write() and console.log() i notice some IDE are quite selective about recognising them?

Message permanent page


Document.write writes to the current HTML document, it's a part of the DOM API and only available in a web environment. (It's bad, don't use it ever)

— Console.log is a general "print" style method, that just outputs to the console aka stdout

— Oh okay

— VScode is visual studio code?

— Both are same...

— Yup

— Can vscode be used to build major projects?

— Yes

— But so can any tool

— Does it work well for major projects?
I think so

— Wow. I just spotted this in production JS for a form validator