Utilizor
Contact Us

Boolean Conversion

Converting values to boolean.

Boolean Conversion

You can use the Boolean() function to find out if an expression (or a variable) is true.

Boolean(10 > 9) // returns true

Example

let x = 0;
Boolean(x); // false