Easy Tutorial
❮ Prop Video Buffered Prop Meta Name ❯

JavaScript valueOf() Method

JavaScript Boolean Object

Example

Return the primitive value of a Boolean object:

myvar output:


Definition and Usage

The valueOf() method returns the primitive value of a Boolean object.


Browser Support

All major browsers support the valueOf() method.


Syntax

Return Value

Type Description
Boolean true or false

JavaScript Boolean Object

❮ Prop Video Buffered Prop Meta Name ❯