Alfaiz Ali
Alfaiz Ali

@heyAlfaiz

5 Tweets 1 reads Mar 16, 2023
Booleans in JavaScript 💙
• What is a Boolean?
→ In programming, you will need a data type that can only have one of two values, like
• YES / NO
• ON / OFF
• TRUE / FALSE
For this, JavaScript has a Boolean data type. It can only take the values as true or false.
More 👇
→ We can use the Boolean() function to find out if an expression is true:
• Boolean Properties
• Boolean Methods
Thanks so much for getting to the end of it! 🙏
Make sure to follow me @imAlfaiz for more such content! 😇

Loading suggestions...