Our third variable: Boolean Flags
So far we've met two primitive variables: Number & String. In this lecture we're going to meet the Boolean data type. This variable is the last primitive JavaScript data type.
Primitive variables are the basic building blocks of every programming language. Every programming language has different building blocks. The core building blocks of JavaScript are numbers strings and Boolean variables.
A Boolean variable is the most basic variable type as it can contain only two possible values. The values a Boolean variable can contain are true or false. A common name to a Boolean variable is a flag because it is a fork in the road - it's a split decision between true or false.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!