René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

var [JavaScript snippet]

var outside = "OUTSIDE"

function main() {

  txt_out(outside);
  outside = "inside";
  txt_out(outside);
  var outside="INSIDE";
  txt_out(outside);

  var str = "string";

  txt_out(typeof(str));

  txt_out(str["length"]);


  for (var x=0;x<5;x++) {
  
  }

  txt_out('x:' + x)

  for (var x=0;x<4;x++) {
  
  }
  txt_out('x:' + x)

//for (var k in str) {
//  alert(k)
//  txt_out(k + ": " + str[k])
//}
}