
Begin the programming fundamentals in TypeScript with a practical, hands-on introduction. The instructor emphasizes reporting, a polling environment, and practicing with the team.
This article explains what is TypeScript in relation to JavaScript. And what are the enhanced features present in TypeScript as compared to JavaScript.
Explore how TypeScript extends JavaScript as a superset, outlining its compilation to JavaScript and the extra features beyond standard JavaScript.
Learn how TypeScript acts as a transpiler that compiles to JavaScript, generating plain JavaScript code after enhancing features for execution on any JavaScript platform.
Explore the TypeScript editor in Visual Studio Code, offering strict typing and strong JavaScript support. See how this environment handles multiple languages and essential tools for test projects.
Set up a TypeScript project by creating and opening a folder in Windows with Visual Studio Code, then initialize via command prompt and configure the target version.
TypeScript is a superset of JavaScript that compiles to JavaScript and adds features. It covers installing TypeScript with npm and setting up a TypeScript project.
Explore the complete TypeScript type system and the types present in TypeScript with detailed explanations.
Explore the full range of TypeScript types, from primitive and object types to null, undefined, and void, including number, string, boolean, object, class, and interface.
Explore the number type in TypeScript, including integers and decimals, binary representation basics, arithmetic operations, maximum values, and big integers.
Learn how numbers limit precision beyond the maximum safe value, why big integers are needed, and how comparisons work between number and BigInt while arithmetic between them isn't supported.
Strings are alpha-numeric values. All the things that you can do with strings in JavaScript, you can also do it with TypeScript
There is a string type with small s and also with capital S. Small s string type is a primitive type where as String type with capital S is a wrapper object for string type with small s.
Template String are string values contained within back ticks and can contain certain expressions or variables within strings.
Explore boolean basics in TypeScript by distinguishing true and false values, using booleans in conditional comparisons, and understanding the difference between boolean primitives and Boolean objects.
Explore enumerations in TypeScript by defining color options as enums, assigning numeric or string values, and using a single data type to manage multiple choices in code.
Learn to build a simple marksheet application in TypeScript by creating a file and a folder, entering subject marks, computing totals, and generating a result message in a console program.
Explore a TypeScript bank profit calculator that models monthly, quarterly, semi-annual, and annual profits, computes profits from a given balance, and outputs results with console logs.
Explore how if else conditions in TypeScript check conditions to choose true or false paths and control flow through comparisons and simple variable examples.
Learn how the while loop repeats a task based on a condition rather than a fixed count, contrasting it with a for loop using simple input and termination examples.
Learn how a switch statement matches specific cases to assign a grade, with a default for no match, and compare it to an if-else ladder that tests conditions sequentially.
Explore arrays in TypeScript by creating number and string arrays, assigning values, using zero-based indexing, iterating with a loop, and printing each element with console.log.
Refactor the bank profit calculator in the TypeScript course by consolidating profit rate logic into a single property and enabling monthly, quarterly, semi-annually, and yearly calculations via a loop.
Compute compound interest over 120 months in a TypeScript example, using a monthly profit and investment at a 10% annual rate, calculating and printing the formatted future value.
Master the basics of conditions and value switch statements in TypeScript, reinforce learning with practical examples, and preview upcoming modules in this programming fundamentals course.
Learn advanced types in TypeScript, including any, undefined, void, and never, plus type alias, type guard, and union and intersection types, with a module project.
Explore void and never data types, where void means undefined and never means you cannot return a value. Learn their difference, uses, and how functions may return void or never.
Explore type alias in TypeScript, which gives a new name to an existing type without creating a new type. Use aliases for numbers, strings, and data like objects and interfaces.
Learn how union types in TypeScript let a variable hold multiple data types (number, string, boolean) and how intersection types require all types together, often producing never for incompatible primitives.
Explore type assertion in TypeScript, converting strings to numbers via as and angle-bracket syntax for unknown data. Learn that type assertions do not perform runtime conversion, unlike true type conversion.
Describing types of functions in TypeScript
Describing named functions in TypeScript and its implementation and call.
Learn anonymous functions in TypeScript by assigning unnamed functions to variables, passing them as arguments, and invoking them to perform operations like addition with console output.
Explore arrow functions in TypeScript, transforming traditional function syntax into concise one-liners that omit brackets and the return keyword while preserving the same behavior and arguments.
Learn how to call an arrow function in TypeScript, call it just like an anonymous function, pass parameters, and pass the function to other functions.
Explore the four parameter types in functions, including required, optional, and default parameters, and examine them one by one.
Explore required parameters in TypeScript by examining a barometer function that demands multiple arguments. Learn how omitting a required parameter triggers an error, reinforcing proper function calls.
Explore optional parameters in TypeScript by using a question mark. Check for undefined to return the first value, and use a second value when provided.
shows in TypeScript how omitting an argument uses a predefined value and how providing an argument changes the result.
Explore rest parameters in TypeScript by collecting a varying number of arguments into a single rest array and processing them as a string or other types.
Ensure the rest parameter comes last and that required parameters are defined first, letting remaining arguments become the rest parameter. The TypeScript compiler enforces this order to access extra arguments.
Convert a bank profit calculator to a functional TypeScript approach by defining a bank profit function with typed parameters, then reuse it for multiple accounts.
Explore a complex TypeScript geometrical drawings example using anonymous and named functions to draw circle, square, rectangle, and triangle in a console app, with required, default, and optional parameters.
Explore how programming treats everything as objects with properties, attributes, and methods, and how constructors create objects within classes from blueprints.
Define a class as the blueprint for objects, with properties and a constructor to initialize them, and use a class method to act on each instance.
Explore inheritance in TypeScript and learn how a child class extends a parent class to inherit properties and methods, using the super keyword to initialize constructors.
Explore access modifiers in classes and objects, distinguishing public, protected, and private properties through a student and chemistry student example, and learn how default public access affects object visibility.
Explore access modifiers in TypeScript by applying public, protected, and private to class methods, controlling visibility inside and outside the class with practical method examples.
Explore abstract classes in programming fundamentals, learn how abstract methods prevent instantiating the abstract base, and see how derived classes inherit structure without creating the base as an object.
Illustrates the static keyword in TypeScript, showing that static properties and methods belong to the class rather than instances, providing a single class-level value accessible via the class.
Explore interface inheritance by extending an existing interface and implementing the extended interface in a class, ensuring the properties and methods from the parent appear, such as study chemistry.
Learn how generics in TypeScript let you write a single, reusable function that works with strings, numbers, and objects while maintaining type checking.
Welcome to the TypeScript Programming course
If you are a new to programming or an experienced programmer looking to enhance your knowledge of TypeScript or to learn TypeScript from scratch, you've come to the right place. This course is your one-stop-shop for all things related to TypeScript. Here's what we'll cover:
How to set up a development environment for TypeScript.
Type System of TypeScript.
Conditionals and Control flow of the programs in TypeScript.
More advanced types specific to TypeScript.
Functions in TypeScript.
Object oriented programming in TypeScript
And all the related coding examples and notes.
Generics in TypeScript
Additionally, think of this course as the jumping-off point for your exploration into TypeScript. The coding examples used in this course are improved based on the concepts module by module in each module making it more related and easy to understand the need of the enhanced and the feature.
There are six sections in the course in total.
The first section which is a starter will be helping to understand the need and benefits of TypeScript and also it will help to get hands on with setting up the development environment for the TypeScript projects.
Second section describes in detail the powerful type system of the TypeScript in which we learn to use different data types in TypeScript.
Third section introduces you to the fundamental conditional controls and flow of controls including if else, switch statement, looping etc.
Fourth section explains us some more advanced data types that are specific to TypeScript and enhances the power of programming and we are able to write more robust applications.
Fifth section explains more fun part the different types of functions and different related features to that concepts.
Sixth part gives more advanced knowledge of Object orientation, interfacing, patterns, generics etc.
All these sections contains related code examples and notes etc.