JavaScript Tutorial/String/valueOf
Версия от 18:52, 25 мая 2010; (обсуждение)
string.valueOf()
The valueOf() method returns the primitive value of the object. In terms of an instance of a String object, this method returns the string itself.
<html>
<script language="JavaScript1.1">
<!--
var myString = new String("Here is some random text.");
document.write("The value of my string instance is: " + myString.valueOf());
document.close();
-->
</script>
</html>