JS Return Uncefined on ReferenceError

window.console && console.log(new Date());
Sal-versij