How do I print debug messages in the Google Chrome JavaScript Console?

Executing following code from the browser address bar:

javascript: console.log(2);

successfully prints message to the “JavaScript Console” in Google Chrome.

Leave a Comment