Barrett Distribution interview question

Difference between TypeScript and JavaScript