Guided Notes

Simple & Special Types

string, number, boolean, bigint, type inference, explicit vs implicit typing, and the special types any, unknown, never, void, null and undefined.

The primitive types

Slide 1 / 4
TypeExamples
string"Dar es Salaam", 'hi', template strings
number42, 3.14, -7, NaN (integers and decimals share one type)
booleantrue, false
bigint9007199254740993n (very large integers)
symbolSymbol("id") (unique keys)
null / undefinedAbsence of a value
← Introduction to TypeScript