Javascript

Check if console exists

if (window.console && window.console.log) {
        // log
}