
Engage in a hands-on TypeScript learning experience by building several files from scratch. Download the completed scripts from the resources section to reference as you practice and master TypeScript.
Explore how variables act as data containers in TypeScript, carrying types like number, string, boolean, any, and enum, and see compile-time errors for mismatched values and object types via classes.
Set up a variables folder in your project and create variables.ts in Visual Studio Code. Transpile the TypeScript file to JavaScript with tsc and view output in the same folder.
Define variables of type string using double quotes, single quotes, or backticks, assign string literals, and print them with console.log after transpiling to JavaScript.
Explore TypeScript arithmetic operators like addition, subtraction, multiplication, division, and modulus by creating arithmetic.ts, transpiling to arithmetic.js, and viewing results in the browser console.
Explore how flow control statements determine runtime execution, covering selection statements like if-else and switch, iterative loops such as while and for, and transfer statements like break and return.
Explore the switch statement in TypeScript, learn how break prevents fall-through, how to share logic across case 1 and case 2, and ensure only one case executes after a break.
Explore the while loop in TypeScript for beginners, showing its syntax, boolean condition, and printing 1 to 10 with i++ and prefix vs postfix increments.
Develop a simple TypeScript email validator using indexOf to check for @ and dot, creating email validator dot ts, and using if-else logic with future regex enhancements.
Learn how to define and manipulate TypeScript arrays, push elements with push, handle string and any types, and iterate with a for loop to display all elements.
Learn how to de-structure objects in TypeScript by extracting firstName and lastName into variables, logging them, and understanding that property names must match the object's keys for successful destructuring.
Explore defining and invoking functions in TypeScript, with strict parameter and return types, and see examples like place order and display page to handle business logic and UI events.
Learn how to pass a string parameter to a function in TypeScript, compare type annotations with JavaScript, and fix transpile errors by supplying arguments to produce a hello message.
learn to assign default values to optional parameters in TypeScript using the equals sign; set a default role of 'normal' and see how it's overridden when a value is passed.
Learn to pass functions as arguments in TypeScript by building a calculator function that invokes any function with two parameters and displays the result.
Learn to implement function overloading in TypeScript with a double me function that doubles numbers and duplicates strings, then restrict overloads to number and string via explicit signatures.
Learn how to pass any number of parameters to a function in TypeScript using rest params, enabling variadic functions that multiply all inputs, as shown in the varargs.ts example.
Push ten anonymous arrow functions into a TypeScript array with a for loop, then invoke them in a second loop to log numbers 0 through 9.
Explore how const in TypeScript prevents value changes, mirroring final in C/C++, with a practical VS Code demo and notes on ES6 compatibility and transpiled JavaScript behavior.
Learn how using const with function declarations prevents reassigning a function to a different implementation, guarding product calculations and ensuring consistent return types in TypeScript.
Explain how to create a product object that complies with a TypeScript interface, enforcing required properties, correct types, and known property names to ensure type safety across objects.
Define a display method in a product interface and implement it across all complying objects, ensuring each class provides the method to avoid type errors.
Define string index based interfaces to map student names to scores in TypeScript. Use a for-in loop to iterate keys and access scores by name in a practical object-like interface.
Extend interfaces to compose a car from exterior and interior properties using the extends keyword. Build a car object with make, model, year, color, doors, seats, and auto.
Define contracts for objects and functions with interfaces using the colon operator, including properties, optional properties, and extended interfaces, and enforce exact signatures and array typing at compile time only.
Define a passenger class in TypeScript with firstName, lastName, and frequentFlyerNo, create objects, and learn to initialize properties with a constructor.
Learn to use the for-in loop in TypeScript to access object properties and values, and filter out functions with the instanceof operator and continue to log only data properties.
Define an interface with flightNo, from, and to, then implement it in a class that initializes these properties and a display method to log the flight details.
The ONLY course that teaches all the TypeScript Fundamentals required to work with Angular !
---
Sample of the reviews:
Very clear explanation ! Perfect course to begin with Typescript ! -Brice Lallement
It was a good starting point for a beginner like me. I did not use JavaScript before, but the TypeScript course was an excellent introduction. Thank you Bharath Thippireddy - Ana Nasture
---
All source code is available for download
Responsive Instructor - All questions answered within 24 hours
Professional video and audio recordings (check the free previews)
----
If you are JavaScript developer who wants to learn TypeScript in depth and also master then this course is for you.If you are a developer with any other object oriented programming language background and want to learn AngularJS in the future then this course is for you too .TypeScript is is used by many popular JavaScript frameworks like AngularJS , VueJS etc by. You should have used JavaScript before you take this course.
JavaScript does not use structures like classes to implement object oriented programming.This can be confusing for programmers coming from Java ,C++ or python background.This course covers how TypeScript provides structures like Java ,Python etc that will make our life easier.It will also be easy for you to learn newer versions of JavaScript in like ES 6/7 in the future once you master TypeScript.
What Will I Learn?
Learn how to define variables using data types
Create functions that take optional, default and variable number of arguments
Create and use arrow functions
Use Interfaces to define a contract for objects , functions and arrays
Use the different types of variable prefixes like let and const
Learn the key Object Oriented Principles
Create objects using classes
Reuse Objects through Inheritance
Use the different access modifiers
Encapsulate your classes/objects
What are the requirements?
Visual Studio Code IDE ,Web Browser(Chrome, Firefox, IE etc)