English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
valueOf()The method returns the original value of a number.
number.valueOf()
var num = 10; num.valueOf();Test See‹/›
All browsers fully support the valueOf() method:
Method | |||||
valueOf() | Yes | Yes | Yes | Yes | Yes |
Return Value: | A number representing the original value of the specified number |
---|---|
JavaScript Version: | ECMAScript 1 |