Programming Languages TypeScript Interview
Oct 01, 2025

Explain the different types available in TypeScript.

Detailed Explanation
TypeScript provides several built-in types: 1) Primitive types: number, string, boolean, null, undefined, symbol, bigint, 2) Object types: object, array, function, 3) Special types: any (disables type checking), unknown (type-safe any), void (no return value), never (never returns), 4) Union types: string | number, 5) Intersection types: Type1 & Type2, 6) Literal types: specific string/number values, 7) Custom types: interfaces, type aliases, enums, classes.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback