The Ultimate TypeScript course with EZTyping
by: Tiziano van der WaalsTypeScript is a programming language developed and maintained by Microsoft. It's a strict syntactical superset of JavaScript, meaning most valid JavaScript is also valid TypeScript, but TypeScript also adds some optional static typing to the language. TypeScript is designed to be used for the development of large applications.
So, why learn TypeScript
TypeScript is used be a enormous amount of websites, such as Google, Facebook, and Twitter.
Being able to use TypeScript is definitely an impressive way to create dynamic web applications yourself, it's a very convenient programming language that is very powerful, with an amazing variety of features and libraries available.
The TypeScript syntax is easy to understand and use, but it does have some special syntax you have to look out for. Don't be scared about using TypeScript, EZTyping will make sure you get the basics of the language down!
What do you need to start?
The only things you need are:
- a computer,
- and a web browser (any one works!)
Some basic examples
- Printing messages
Just as in JavaScript, TypeScript also uses the console.log() function to print messages to the console. - Variables
In TypeScript, you can create variables using the var, let or const keywords, followed by the type of the variable. - If statements
In TypeScript, you can use if statements to check if a certain condition is true or false. - For loops
In TypeScript, you can use for loops to iterate over a certain amount of times.