Development in platform ecosystems
  • Home
  • Learn

JavaScript

  • Introduction
  • Variables
  • Functions
  • Data types
    • Built-in types
    • Strings
      • Creation
      • Concatenation
      • Capitalization
      • Contains
      • Replace
      • Length
      • Search
      • Substring
      • Split
      • Comparison
      • Formatting
    • Numbers
    • Booleans
    • Indexed collection (arrays)
    • Keyed collection (objects)
  • Control flow
  • Asynchronous
  • Fetching external data
  • Manipulating documents

JavaScript

  • Introduction
  • Variables
  • Functions
  • Data types
    • Built-in types
    • Strings
      • Creation
      • Concatenation
      • Capitalization
      • Contains
      • Replace
      • Length
      • Search
      • Substring
      • Split
      • Comparison
      • Formatting
    • Numbers
    • Booleans
    • Indexed collection (arrays)
    • Keyed collection (objects)
  • Control flow
  • Asynchronous
  • Fetching external data
  • Manipulating documents

JavaScript String Type

Length

All strings have a length property that tells us how many characters the string has.

const boneHuntersQuote = `
It' s easy to weep when staying far away, doing nothing.
`
console.log(boneHuntersQuote.length) // 58
PrevNext

© 2026 DHIS2 Design Lab