For JavaScript I found the following solution for Internet Explorer to be able to deal with console.log without hitting F12.
['console' is undefined error for Internet Explorer](https://stackoverflow.com/questions/3326650/console-is-undefined-error-for-internet-explorer)

however when I use the following lines in Typescript I can't compile.

```
if (!console) console = {log: function() {}};

```

Any ideas?