
TypeScript for beginners introduces core concepts from installation to variables, conditional statements, and modules, guided by an experienced instructor with 10+ years in Microsoft technologies.
Explore TypeScript, an open-source, object-oriented superset of JavaScript developed by Microsoft, that adds interfaces and static typing for large applications and compiles to JavaScript for browsers.
In this lecture, we will throw some light on the reasons to learn TypeScript.
We will have a look at the installation process using Node Package Manager (NPM).
Writing your first program in TypeScript.
In order to keep a watch on your TypeScript file you can add --watch.
In this lecture, you will learn to declare variables in TypeScript.
In this lecture, you will learn the difference between let, var, and const keywords in TypeScript.
Discover the built-in data types in TypeScript, including string, number, boolean, undefined, null, void, and never, with variable declarations and practical examples.
Learn how to declare string variables and array-like structures in TypeScript, assign student names and ids, and use bracket indexing to access elements.
An Interface is a description of the actions that an object can do. We will learn about the typescript interface in this lecture.
Explore tuples in TypeScript, a fixed set of values of different types, and how they differ from unions. See a string and a number used together to represent related data.
Demonstrate switch case usage in TypeScript by evaluating a value and executing matching blocks, with an optional default; includes days of the week examples and inputs like 5 and 10.
Compare how the while loop checks the condition before executing, and how the do-while loop executes the block at least once, as x starts at 1 until 3.
In this TypeScript for Beginners lecture, learn how to use the typeof operator to check variable types, with string and number examples and practical type checks.
Explore type assertion in TypeScript by explicitly casting an any variable to string using the as keyword or angle-bracket syntax, enabling access to string length and interpolation.
Explore public, private, and protected access modifiers in TypeScript, illustrated with a code snippet and combined examples for clear understanding.
The course will help you learn TypeScript step by step. Sections are broken down into lectures, where each lecture contains several related topics that are packed with easy-to-understand explanations and real-world examples.
The course is designed for beginners and intermediate-level professionals who want to learn TypeScript and use it for building applications.
What is TypeScript?
TypeScript is an open-source object-oriented programming language developed and maintained by Microsoft. It’s a superset of JavaScript.
TypeScript is designed for the development of large applications and transpiler to JavaScript.
Why TypeScript?
As we already know that TypeScript transpiles to JavaScript as browsers can only understand JavaScript.
So you might be thinking that what’s the need of adding an extra layer if the executable code is going to be JavaScript itself?
There are many benefits of using TypeScript, listing down a few of them.
TypeScript integrates well with React, Vue, and Angular.
TypeScript is a statically typed language and this makes the code easier to refactor. Statically typed programming languages are those in
which the type of a variable is known at compile-time instead of at run-time.
TypeScript is easier to read and access. Helps in code maintainability.
The course has the following topics
Introduction to TypeScript
Variables
Data Types
Conditional Statements
Loops
Type Checking
Type Assertion
Functions
Access Modifiers
Namespace
Modules
Generics
TypeScript Resources