alias to chrome console.log

When you write cl();, you’re calling log in the global context.

Chrome’s console.log doesn’t want to be called on the window object.

Instead, you can write

cl = function() { return console.log.apply(console, arguments); };

This will call log in the context of console.

Leave a Comment