* Our main objective is just to spark interest especially to those not familiar with the tool.
- What is TypeScript
* go to next slide
* JS code naturally works on TypeScript
* TS code compiles to simple and clean JS.
- Screenshot of TS compiled to JS
- TypeScript's Main Feature
* So what does TS provide us with? What does it actually do?
- Static Type Checking
* TypeScript allows us to enable type checking by defining data types to your for ex. variables, function parameters and return types.
- Screenshot of basic Static Type Checking
* In this example…
* What I've done here was to assign supposedly wrong values for what the variables or parameters were meant to hold
* In TypeScript by enabling static type checking these potential errors are caught earlier (see the red marks on the expressions) and wouldn't even allow you to compile unless these are resolved.
* In addition you can also type arrays and object literals
- Effects of Static Type Checking
* As TS code is statically type-checked a side effect of such...
- Allows IDEs to perform live error checks
- Exposes auto-completion and code hinting
- Screenshot of code hinting
* As a result of static type checking this allows IDE's to access these class members as code hints
- A few of the other cool features
* That was only the basic feature of TypeScript
* A few of the other cool features are...