Boolean constructor Property - Javascript Boolean

Javascript examples for Boolean:constructor

Description

The constructor property returns the constructor function for an object.

The constructor property returns the function that created the boolean's prototype:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>



<p id="demo"></p>

<script>
var bool = false;// w w w  .java  2s . c o m
document.getElementById("demo").innerHTML = bool.constructor;
</script>

</body>
</html>

Related Tutorials