Console.log not working?

I am trying a basic print function, however Console.log isn't working, neither is alert.

You are viewing a single comment. View All

First of all, console.log() should be all lowercase.

As for alert(), that will not work in node.js because node.js is server side. alert() is a function that is used only in client side, when HTML and CSS are involved. If you want to use alert(), you have to go to an HTML, CSS, JS repl.

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!