Booleans, Functions, and Objects
In this lesson, you will learn how to declare a variable that can hold true or false.
We'll cover the following
Boolean primitive type
A boolean value is the most basic primitive in JavaScript and it remains the same with TypeScript. Boolean values restrict the assignment to two values: true
and false
. These terms are case sensitive – only the lowercase format is accepted.
Get hands-on with 1200+ tech skills courses.