1. Which are primitive types in TypeScript?
- string, number, boolean, bigint, symbol
- object, array, function
- enum, tuple
- Map, Set
Correct Answer: string, number, boolean, bigint, symbol
const s: string = 'hi';
const n: number = 42;
const b: boolean = true;
const big: bigint = 9007199254740993n;
const sym: symbol = Symbol('id');