1

TypeScript has two levels of private values (at least in the beta):

private foo = false; // Cannot be accessed outside the object in TypeScript

#bar = false; // cannot be accessed outside the object in both TypeScript and JavaScript.

Comments
Add Comment