The better way to see messages from the JavaScript running in the browser is to use the console.log() function and open the console.

Open the console!

console.log("Hello World");

console.debug("A debug message");"An info message");
console.warn("A warning");
console.error("This is an error message");


To open the JavaScript console

Run it with Node.JS

Run it in the editor