window.console vs console

If console isn't defined, it'll throw a reference error.  So it's either typeof console !== undefined or window.console.