Console.log


#1

console.log("it does not print any thing why ? ")

document.write(it works);

when ever i write console.log in notepad++ it wirtes like a plain text like it has nothing to do with javascript


#2

Console.log is logging to the console. Which means on a browser with the built in console you can debug code because you can find what string should have been printed and why it didn't. Nothing in console.log will show up on the page.

Document.write is logging to the document. As you said