I was playing with the TypeScript playground (http://www.typescriptlang.org/play/) and noticed how cool is to have a great linter that checks your code for all kinds of errors and gives you meaningful warnings.
So check this out:
… and after you hit run!