The syntax is a set of rules to write programs. Every language specification defines its own syntax. A TypeScript program consists of −