English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
valueOf()The method returns the original value of the string object.
This method is usually called by JavaScript internally, rather than explicitly called in the code.
string.valueOf()
var str = "Hello World"; str.valueOf();Test See‹/›
All browsers fully support the valueOf() method:
Method | |||||
valueOf() | Yes | Yes | Yes | Yes | Yes |
Return Value: | A string representing the original value of the given String object |
---|---|
JavaScript Version: | ECMAScript 1 |