
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the methods of a boolean object in JavaScript?
The following is a list of the methods of Boolean object −
Sr.No | Method & Description |
---|---|
1 | toSource() |
2 | toString() |
3 | valueOf() |
Example
Let’s see an example showing the usage of valueOf() method in JavaScript −
<html> <head> <title>JavaScript valueOf() Method</title> </head> <body> <script> var flag = new Boolean(false); document.write( "flag.valueOf is : " + flag.valueOf() ); </script> </body> </html>
- Related Questions & Answers
- What are the properties of a boolean object in JavaScript?
- What are the methods of an array object in JavaScript?
- JavaScript Object Methods
- How to create a Boolean object in JavaScript?
- What are the Important Array Methods in JavaScript?
- What are async methods in JavaScript?
- Do you think JavaScript Functions are Object Methods?
- What are the methods of clustering?
- What are the properties of window.screen object in JavaScript?
- What are async generator methods in JavaScript?
- What are Boolean Expressions?
- Get all methods of any object JavaScript
- Create a Boolean object from Boolean value in Java
- What are the properties of an array object in JavaScript?
- What are the methods of Propagation of a Radio Wave?
Advertisements