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

Taught in

References