
See how TypeScript catches errors before production, reducing crashes and unhappy users. Experience a configurable, statically typed environment that helps manage edge cases and null checks in growing codebases.
Explore programming fundamentals in TypeScript through three vehicle examples: car, bike, and plane, by creating objects, attaching fuel functions, and printing details, building a mind map for later reference.
Join the web development Telegram channel, MSJ web development, to connect with like-minded learners, ask questions, and know that I am active in the group; joining is optional.
Begin your TypeScript journey with hands-on lab experiments crafted from the instructor's experience and designed to be simple and accessible for everyone.
In this lecture, we will analyse a practical example of a simple adder function where javascript fails to intimate the developer about a potential error / bug introduced to the system that causes unintended behaviour at runtime causing corrupted production code.
In this lab experiment, you will try to play with a sample javascript code in order to understand the fundamental problem with JavaScript during runtime.
Let's set up a bootstrap playground project from scratch which will help you understand each topic / concept we discuss throughout this Bootcamp. You will also have the ability to change code and observe the behaviour.
You can also see the errors via either VS Code intellisense or during compilation.
VS Code extensions are really handy. So install these in your local machine so that it matches my setup. This will make it easy for you to annotate and color code as we try to understand various TS concepts.
Explore the TypeScript online playground to paste code, compile to JavaScript, and view errors with options like target and tsconfig, then apply these concepts on your local machine.
Explore the basics of TypeScript, distinguishing its primitive types from JavaScript, learn how TypeScript adds custom types, object types, and interfaces, and practice annotating types in hands-on labs.
Learn how TypeScript maps JavaScript primitive types, and declare explicit types for string, number, boolean, null, undefined, big int, and symbol. Observe how the TypeScript compiler outputs plain JavaScript.
Learn how TypeScript enforces array types with strings, numbers, and booleans through examples like car models and lucky numbers, and annotate functions and return types to avoid errors.
Explore interfaces in TypeScript, a scalable alternative to type aliases, learn how to declare an interface, include methods, and enforce objects adhere to the interface in large projects.
Learn how to achieve extensibility in TypeScript by extending interfaces and type aliases, using extends for interfaces and intersections with the ampersand for types.
Explore how the any type in TypeScript lets variables accept any value, from strings and numbers to objects, while highlighting risks of bypassing type checking and common pitfalls.
Discover how TypeScript's special void type represents no return value, distinguishing it from undefined, and how to annotate a function with void for clearer typing.
Explore how TypeScript extends literal concepts from JavaScript by defining literal strings and numbers as little types that constrain variables to specific values.
TypeScript lets you create literal types that contain exact values, like Honda or 2021, using const, type keywords, and unions to enforce strict, specific values.
Explore declaring custom types by combining non-lethal types using unions, interfaces, and literals in TypeScript, then apply to a car example with make as a string.
Declare the API response as a tuple to manipulate an array with a known order, ensuring nomenclature (model, make) and avoiding runtime errors when item meanings or counts are unknown.
Explore declaring a tuple with an interface in TypeScript, enforcing a fixed length and item types (number, string, boolean) using numeric keys and unions like India or US.
Learn how to mark a double as read-only in TypeScript, preventing any item from being reassigned and surfacing errors with read-only properties.
Learn to use rest parameters in TypeScript with the spread syntax, defining a tuple: first a number, second a string, and the rest as numbers, illustrated with a card table.
TypeScript is a superset of JavaScript developed at Microsoft by Anders Hejlsberg ( designer of C# ) in the year 2010 and open-sourced in 2012. TypeScript adds a handful of new features to JavaScript and takes it to the next level in modern web development.
There are a lot of advantages if you add TypeScript to your JavaScript-based projects like:
You can catch bugs errors during the development phase itself rather than runtime.
Debugging is much easier & you will have bug-free production code and feel safe.
With static type-checking, it becomes easier for you to spot errors and edge cases.
Saves a lot of developer's time in fixing unidentifiable runtime bugs.
TypeScript adds advanced features like generics, modules & namespaces.
Your projects will be easily understandable by other developers.
Your project will have excellent developer experience ( DX ) and team velocity.
Helps you write less code than JavaScript & improves readability.
Source code documentation will be much better.
TypeScript code is easier to refactor and reliable. Hence easier to maintain.
Since JavaScript is a subset of TypeScript, you can use all JavaScript libraries.
You can incrementally upgrade your JavaScript files on the go.
TypeScript is a powerful tool for large applications
After completing MSK TypeScript Bootcamp, you will be able to:
Understand the problem with JavaScript for large scale applications.
Add TypeScript to your JavaScript projects with the compiler configuration.
Include TypeScript and start adding type annotations in your JavaScript projects.
Fully understand all the types supported by TypeScript in depth.
Feel confident in your front-end interview and talk about TypeScript.
Download all the code snippets and create your personal reference notes.
This Bootcamp features hands-on coding lab experiments which are both fun and useful. They will help you understand concepts and play around with TypeScript features. You will have the opportunity to keep those examples for your reference as we advance ourselves to learn more TypeScript features in this series of upcoming Bootcamps.
Your journey to become a master of TypeScript begins here.
Let's get started...