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