Development in platform ecosystems
  • Home
  • Learn

JavaScript

  • Introduction
  • Variables
  • Functions
  • Data types
    • Built-in types
    • Strings
    • Numbers
    • Booleans
      • Creation
      • Truthy
      • Operators
    • Indexed collection (arrays)
    • Keyed collection (objects)
  • Control flow
  • Asynchronous
  • Fetching external data
  • Manipulating documents

JavaScript

  • Introduction
  • Variables
  • Functions
  • Data types
    • Built-in types
    • Strings
    • Numbers
    • Booleans
      • Creation
      • Truthy
      • Operators
    • Indexed collection (arrays)
    • Keyed collection (objects)
  • Control flow
  • Asynchronous
  • Fetching external data
  • Manipulating documents

JavaScript Boolean Type

Creation

We can create new Boolean instances by writing one of the two possible values in our code.

const a = true
const b = false
PrevNext

© 2026 DHIS2 Design Lab