JavaScript valueOf() Method
Complete Boolean Object Reference
Definition and Usage
The valueOf() method returns the primitive value of a Boolean object.
Syntax
Example
In this example we will create a Boolean object and use valueOf() the get the primitive
value of it:
<script type="text/javascript">
var boo = new Boolean(false);
document.write(boo.valueOf());
</script>
|
The output of the code above will be:
Try-It-Yourself Demos
valueOf()
How to use valueOf() find the primitive value of a Boolean object.
Complete Boolean Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|