JavaScript Objects The Boolean Object- ValueOf() - Javascript Objects

What is JavaScript - Boolean valueOf() Method?

Javascript boolean valueOf() method returns the primitive value of the given boolean object.

Syntax:

Its syntax is shown below −

Return Value:

It returns the primitive value of the given boolean object.

Example:

Try the below example.

Output:

flag.valueOf is : false


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics