Primitive Types
TypeScript has several primitive types that correspond to JavaScript primitives.
string
Text values of any length:
number
All numeric values (integers, floats, hex, etc.):
boolean
True or false values:
null and undefined
any and unknown
void and never
bigint
For very large integers:
symbol
Unique identifiers:
Exercise: Declare Variables
Declare variables with the correct primitive types:
Up next · Lesson 5 of 34
Arrays and Tuples
1 min read
4 of 34 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

