JavaScript Basics
JavaScript Objects
JavaScript Advanced
JS Useful References
JS Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
Javascript String - valueOf() Method
Description:
This method returns the primitive value of a String object.
Syntax:
Here is the detail of parameters:
Return Value:
Example:
<html>
<head>
<title>JavaScript String valueOf() Method</title>
</head>
<body>
<script type="text/javascript">
var str = new String("Hello world");
document.write(str.valueOf( ));
</script>
</body>
</html>
|
This will produce following result:
To understand it in better way you can Try it yourself.
|
|
|