Skip to content
Advertisement

Tag: member

What are the differences between typescript access modifiers and javascript ones? And which one should I prefer while using typescript?

Typescript offers the public,protected and private keywords for defining the visibility of the member or the method declared next to them, however, I know that since ES6 Javascript allow the use of the prefix “#” to a class member or method in order to achieve the same result. To try to have a better understanding of how all works behind

Advertisement