/

HTML / CSS / JavaScript Tutorial

JavaScript Boolean method: valueOf()

[this page | pdf | back links]

The valueOf() method (when applied to a JavaScript Boolean variable) returns the primitive value of the Boolean (i.e. itself).

 

It has the following syntax (with no parameters):

 

boolean.valueOf()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Booleans


Desktop view | Switch to Mobile