In a normal browser context, there is no difference. console
is a global variable, and all globals are properties of the window
object.
console.log(console.log==window.console.log) // true
There are some caveats, such as when not running in the browser, or if the console variable has been reassigned. T.J. Crowder explains it nicely.