• Has only two values: true and false.
Let nameFieldChecked = true; // yes, name field is checked
let ageFieldChecked = false; // no, age field is not checked
  • The boolean data type has only two possible values: true and false.
  • Use this data type for simple flags that track true/false conditions.
  • This type is commonly used to store yes/no values: true means "yes, correct", and false means "no, incorrect".

boolean — Structure map

Clickable & Draggable!

boolean — Related pages: