Javascript examples for Boolean:constructor
The constructor property returns the constructor function for an object.
The constructor property returns the function that created the boolean's prototype:
<!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>