Boolean Overview

[Total: 0    Average: 0/5]

Constructor: (where value is the value contained in the boolean object)

Body Code:

<script type=text/javascript>
var a = new Array();
var b = new Array();
function A(_a) {a[a.length?a.length:0] = eval(_a);b[b.length?b.length:0] = _a;}
function P() {for (var i in a) {document.write(a[i].toString()+"="+b[i]+"<BR>");}}
A('new Boolean(true)');
A('new Boolean("true")');
A('new Boolean(1)');
A('new Boolean("1")');
A('new Boolean(0)');
A('new Boolean("0")');
A('new Boolean("false")');
A('new Boolean(false)');
A('new Boolean("zebra")');

A('Boolean(true)');
A('Boolean("true")');
A('Boolean(1)');
A('Boolean("1")');
A('Boolean(0)');
A('Boolean("0")');
A('Boolean("false")');
A('Boolean(false)');
A('Boolean("zebra")');

P(a);

</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *