boolean constructor js 1

boolean constructor js

var bol = new Boolean(false);

Here is what the above code is Doing:
1. We create a new object called bol.
2. We set bol to a new Boolean object whose value is false.
3. We then output the value of bol (which is false) to the console.

Similar Posts