CodeZettaInterview Hub

TypeScript · Types · Fresh / Intern · Concept

What are TypeScript's primitive types?

Short Interview Answer

string, number, boolean, null, undefined, symbol, bigint — plus special any/unknown/never/void.

Detailed Explanation

Prefer precise primitives over any. Note number covers floats/ints; bigint is separate.

Did you know this answer?