EG interview question

Why use TypeScript over JavaScript?