Name
Boolean — support for boolean values
Availability
Core JavaScript 1.1; ECMA-262
Constructor
// Constructor function new Boolean(value) // Conversion function Boolean(value)
Methods
- toString()
Convert a boolean value to a string.
Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.