Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Learn TypeScript - Crash Course for Beginners

via freeCodeCamp

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Master TypeScript fundamentals in this comprehensive one-hour crash course designed for beginners looking to enhance their JavaScript development skills. Start by understanding what TypeScript is, why it's valuable for developers, and how it works as a superset of JavaScript. Set up your development environment, create your first TypeScript application, and learn essential configuration options. Explore TypeScript's type system including built-in types, type annotations, dynamic type determination, and the any type. Work with objects and type annotations, then dive into functions covering type annotations, optional and default parameters, rest parameters, arrow functions, anonymous functions, and void/never types. Progress to advanced types including union types, literal types, nullable types, type aliases, and intersection types. Learn array type annotations for both single and multidimensional arrays, understand tuples for fixed-length arrays, and explore enums for named constants. Master interfaces including methods, parameters, reopening interfaces, built-in interfaces like HTMLImageElement, and compare interfaces with type aliases. Study classes with type annotations, access modifiers, accessors, static members, interface implementation, abstract classes, polymorphism, and method overriding. Discover generics for creating reusable components, including multiple types, generic classes, and generic interfaces, plus type assertions for type casting. Conclude with debugging techniques and guidance on next steps in your TypeScript journey.

Syllabus

- 0:00:00 Intro & What Is TypeScript?
- 0:03:14 Why Should You Learn TypeScript?
- 0:04:13 How TypeScript Works
- 0:04:21 Prerequisite
- 0:04:28 Chapter 2 Setup
- 0:04:35 Setup
- 0:05:44 Create Your First Application
- 0:06:52 Running the Code
- 0:07:52 Configuration
- 0:09:50 Chapter 3 Types
- 0:09:57 Built-In Types - TypeScript Types
- 0:10:28 Type Annotations
- 0:11:58 Dynamic Type Determination
- 0:12:34 Any Type
- 0:13:18 Chapter 4 Object
- 0:13:25 Type Annotations With Objects
- 0:14:27 Chapter 5 Functions
- 0:14:34 Type Annotations With Function
- 0:16:06 Optional And Default Parameter
- 0:16:35 Optional Parameter
- 0:16:59 Default Parameter
- 0:17:44 Function Rest Parameter
- 0:19:02 Arrow Function
- 0:19:15 Anonymous Function
- 0:19:46 Void & Never
- 0:20:46 Chapter 6 Advanced Types
- 0:20:52 Union Types
- 0:21:35 Literal Types
- 0:23:13 Nullable Types
- 0:24:52 Type Alias
- 0:26:15 Intersection Type
- 0:26:56 Chapter 7 Array
- 0:27:02 Type Annotations With Arrays
- 0:27:24 Type Annotations With Multidimensional Arrays
- 0:28:01 Chapter 8 Tuple
- 0:28:07 Tuple
- 0:28:52 Chapter 9 Enums
- 0:28:59 Enums
- 0:30:00 Chapter 10 Interface
- 0:30:07 Interface
- 0:31:41 Interface Method And Parameters
- 0:32:54 ReOpen The Interface And Use Cases
- 0:35:11 Built-in Interface
- 0:35:59 HTMLImageElement
- 0:37:35 Interface vs. Type Aliases
- 0:39:48 Chapter 11 Classes
- 0:39:54 Class Type Annotations
- 0:41:16 Class Access Modifiers
- 0:43:00 Class Accessors
- 0:44:06 Class Static Members
- 0:45:17 Class Implement Interface
- 0:46:09 Abstract Classes And Members
- 0:47:24 Polymorphism & Method Override
- 0:49:46 Class vs Interface
- 0:49:54 Chapter 12 Generics
- 0:50:01 Generics
- 0:51:39 Generics Multiple Types
- 0:52:44 Generics Classes
- 0:53:59 Generics And Interfaces
- 0:55:17 Type Assertions
- 0:55:56 Chapter 13 Debugging
- 0:56:02 Debugging
- 0:58:48 Chapter 14 Outro & What's Next
- 0:58:55 Outro

Taught by

freeCodeCamp.org

Reviews

Start your review of Learn TypeScript - Crash Course for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.