Skip to main content

Command Palette

Search for a command to run...

Boolean in JavaScript.

(30 Days Of JavaScript)

Published
1 min readView as Markdown
Boolean in JavaScript.
O

Passionate about crafting elegant code and building innovative solutions that make a positive impact. 🚀 Join me on a journey through the realms of technology as I share my experiences, insights, and latest discoveries. 💡 Let's dive into the world of software engineering, development trends, and emerging technologies together. Follow along for a dose of tech inspiration and knowledge.

The boolean object represents two values, either "true" or "false". If the value parameter is omitted or is 0, -0, null, false, NaN, undefined, or the empty string (""), the object has an initial value of false.

Use the following syntax to create a boolean object:

var val = new Boolean(value);

Boolean Properties

Following is a list of the properties of Boolean Object:

Screenshot_20210609-140336[1].png

Boolean Methods

Following is a list of methods of Boolean object and their description:

Screenshot_20210609-140744[1].png

More from this blog

Bode's blog

44 posts

A developer with a passion for new tech, designing experiences, and user interfaces. Creating harmony between people and technology.