Functions
Type parameters and return values, optional, default and rest parameters, void and never, callbacks, overloads, this, and functions that carry properties.
Functions are where most JavaScript bugs live: the wrong thing passed in, a missing argument, a result nobody expected. This phase teaches you to write down what a function takes and what it gives back, so the checker guards every call.
You'll go from the basics (parameter and return types, optional and default parameters, rest parameters) to the pieces that make real code work: callbacks, functions that return functions, overloads, the tricky this, and functions that also carry properties or can be called with new.
Every example runs the real TypeScript compiler in your browser. Predict the error before you look at the Types panel, then change the code and watch it move.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.