---
title: "Discussion on \"Boolean in JavaScript\" | Hashnode"
description: "Discussion on \"Boolean in JavaScript\". What are Booleans?\n\nData Type: Booleans are a basic data type in JavaScript.\n\nTwo values: Values can be only true or false.\n\n'true' is a string, not a boolean.\n\nfor eg.\n\n\nconsole.log(5<9);\nThe output would be true because we know that 5 is less than ..."
url: "https://hashnode.com/posts/boolean-in-javascript/664216c8527b7c35aafb8d20"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Boolean in JavaScript](https://aditidhabe.hashnode.dev/boolean-in-javascript?utm_source=hashnode&utm_medium=feed)

What are Booleans? Data Type: Booleans are a basic data type in JavaScript. Two values: Values can be only true or false. 'true' is a string, not a boolean. for eg. console.log(5<9); The output would be true because we know that 5 is less than ...

May 13, 2024 · 2 min read · aditidhabe.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#developer](https://hashnode.com/tag/developer)
-   [#development](https://hashnode.com/tag/development)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Aditee](https://hashnode.com/@adii13)

@adii13 · India

  
[View profile](https://hashnode.com/@adii13)

Practice makes man perfect!

## Responses

Comments are turned off for this post.
