1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-01 05:21:43 +02:00

Add boolean content (#6438)

Update boolean@b1HvkoWA2t4kt8mS6FySm.md
This commit is contained in:
iliAsghar
2024-08-08 22:05:43 +03:30
committed by GitHub
parent 68a9b89ee7
commit 169a8f0356

View File

@@ -1 +1,10 @@
# boolean
# boolean
In JavaScript, a `boolean` is a simple data type that can hold one of two values: `true` or `false`. These values are used to represent logical states and are essential in controlling the flow of a program.
Booleans are commonly used in conditional statements (`if`, `else`, `while`, etc.) to determine whether a block of code should execute.
Visit the following resources to learn more:
- [@article@JavaScript Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
- [@video@Booleans in JavaScript](https://www.youtube.com/watch?v=B4ZCFdrBmbE)