JS Built-ins
BooleantoStringbeginner

Boolean.toString() β€” typeof result

πŸ“– Usage Example
true.toString()  // β†’ 'true'

true.toString() always returns the string 'true'.

typeof Boolean.toString()

The result of bool.toString() is always a string primitive.

Challenge: Verify the type.

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