An Interest In:
Web News this Week
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
April 18, 2021 04:11 pm GMT
Original Link: https://dev.to/rthefounding/boolean-values-2a13
Boolean Values
Understanding Boolean Values
Another data type is the Boolean. Booleans may only be one of two values: true or false.
Note: Boolean values are never written with quotes. The strings "true" and "false" are not Boolean and have no special meaning in JavaScript.
- Example:
function welcomeToBooleans() { return true;}welcomeToBooleans(); // will display truefunction welcomeToBooleans() { return false; }welcomeToBooleans(); // will display false
Original Link: https://dev.to/rthefounding/boolean-values-2a13
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To