TypeScript has many ways to declare a variable. You can define a variable at a function or global scope using one of the three following keywords: var, let, and const. Also, you can define a variable with public, private, or protected at the class level.