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

Codecademy

Learn Intermediate TypeScript: Class Types

via Codecademy

Overview

Master TypeScript types in object-oriented patterns. Learn how to utilize keywords to control when class properties and methods are used.

This course dives into the application of TypeScript types to classes. You'll learn how to use TypeScript's variety of keywords, `public`, `private`, `protected`, and `readonly`, to enforce privacy within classes and control where and when a class property or method is executed or shared. Through practical examples like a password generator app, you'll understand how these keywords can add clarity to your code, reduce the chance of bugs, and help keep your code organized and consistent.



* Control properties and methods in classes using TypeScript keywords

* Apply object-oriented patterns using TypeScript

* Enforce privacy within classes using TypeScript keywords

Syllabus

  • TypeScript Class Types: Learn how to use TypeScript to apply types to class properties and methods.
    • Lesson: TypeScript Class Types
    • Project: Password Generator
    • Quiz: TypeScript Class Types
    • Informational: TypeScript Class Types Next Steps

Taught by

Kenny Lin

Reviews

Start your review of Learn Intermediate TypeScript: Class Types

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.