Create Private Class Fields Using TypeScript's private Modifier

Marius Schulz
InstructorMarius Schulz

Share this video with your friends

Send Tweet

In this lesson, we're going over how to create private class fields using TypeScript's private modifier. However, as we're going to see, the private modifier doesn't give us any actual protection at runtime; it only exists in TypeScript's type system and is completely compiled away when emitting JavaScript code.