access modifier
A keyword such as private, protected or public that controls where a class member may be used from.
In more detail
TypeScript's private is checked only at compile time; JavaScript's #name fields are truly private at run time. public is the default.
Related terms
- class — A blueprint in code that bundles data and the functions that work on it, from which objects are made.
Taught in
- Generic Interfaces, Classes And Type Aliases — Production TypeScript