Finastra Interview Question

What do you think are the pros and cons of TypeScript and JavaScript