Returns the value of a string.
Syntaxstring.valueOf()
Return Value
Returns the string value.
ExamplesIn the following example, the string object is the same as the return value.
var str = "every good boy does fine";
var strStr = str.valueOf();
if (str === strStr)
document.write("same");
else
document.write("different");
// Output:
// same
Attributions
Microsoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4