========== Javascript ========== Check if console exists ======================= .. code-block:: javascript if (window.console && window.console.log) { // log }