Vorbly Code | JavaScript | JavaScript Boolean

<JavaScript> Reference

VORBLY CODE - CODE YOUR WEBSITE

JAVASCRIPT REFERENCE

JavaScript (or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.

The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.

arrow&amp;v

JavaScript Boolean

JavaScript booleans have two values: TRUE or FALSE. Developers can use the Boolean() function to find out if an expression is true.

For Example:

Boolean (5 > 3)  // TRUE //

Boolean (3 > 5)  // FALSE //

NAME

DESCRIPTION

CATEGORY

toString()

Converts a boolean value to a string, and returns the result

Methods

valueOf()

Returns the primitive value of a boolean

Methods

constructor

Returns the function that created JavaScript's Boolean prototype

Properties

prototype

Add properties and methods to the Boolean prototype

Properties

 

LEARN CODING FOR FREE!

WEB DESIGN & DEVELOPMENT TIPS & ADVICE