typescript default private or public code example Example: typescript default public or private TypeScript access modifiers are public by default.