- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to convert a boolean value to string value in JavaScript?
To convert a Boolean value to string value in JavaScript, use the toString() method. This method returns a string of either "true" or "false" depending upon the value of the object.
Example
You can try to run the following code to convert a boolean value to string value −
<html> <head> <title>JavaScript toString() Method</title> </head> <body> <script> var flag = new Boolean(true); document.write( "flag.toString is : " + flag.toString() ); </script> </body> </html>
- Related Articles
- How to convert a value into Boolean in JavaScript?
- Java Program to convert boolean value to Boolean
- How to convert Boolean to String in JavaScript?
- How to convert String to Boolean in JavaScript?
- JavaScript Convert a string to boolean
- Convert a specified value to an equivalent Boolean value in C#
- How can I convert a string to boolean in JavaScript?
- How to convert string type value to array type in JavaScript?
- Explain non-boolean value coercion to a boolean one in JavaScript?
- Convert the specified string representation of a logical value to its Boolean equivalent in C#
- JavaScript - convert array with null value to string
- Convert Hexadecimal value String to ASCII value String in C++
- How to convert a Date value to string in JDBC?
- How to convert a double value to String in Java?
- How to convert a value to a number in JavaScript?

Advertisements