JS Built-ins
BooleantoStringbeginner

Boolean.toString() β€” false gives 'false'

πŸ“– Usage Example
const b = false
b.toString()  // β†’ 'false'

Use toString() when you need a text representation of a boolean value.

Boolean.prototype.toString() β€” false

false.toString() returns the string 'false'.

Challenge: Verify the result.

πŸ’‘ Hints (1)
  • β€’ false.toString() returns 'false' as a string.