lower case
upper case
implicit string conversion
toString()
valueOf()
// sample-4-case.js // This sample shows String case and string methods function display() { var output1 = document.getElementById("output1"); var output2 = document.getElementById("output2"); var output3 = document.getElementById("output3"); var output4 = document.getElementById("output4"); var output5 = document.getElementById("output5"); // String object my_string_object = new String("Zebra"); output1.value = my_string_object.toLowerCase(); output2.value = my_string_object.toUpperCase(); // The following produce the same result output3.value = my_string_object; // implicit conversion output4.value = my_string_object.toString(); output5.value = my_string_object.valueOf(); }