Boolean

From PlainOldWebserver

Jump to: navigation, search

Boolean is not a tricky function.


  <?sjs
    var a = new Boolean(0);
    var b = true;
    document.writeln("a is "+a);
    if(b) {
      document.writeln("b is true");
    }
  ?>

The result:

  a is false
  b is true
Personal tools
Navigation