String object properties

string
length property
constructor property
prototype undefined

A copy of the JavaScript functions:

// sample-1-string-properties.js
// This sample shows String properties

function display()
  {
  var output1 = document.getElementById("output1");
  var output2 = document.getElementById("output2");
  var output3 = document.getElementById("output3");
  var output4 = document.getElementById("output4");

  // String object
  my_string_object = new String("hello");

  output1.value = my_string_object;
  output2.value = my_string_object.length;
  output3.value = my_string_object.constructor;
  output4.value = my_string_object.prototype;
  }