Fluxograma
Booleans data type overview
Conteúdo do fluxograma
JavaScript Booleans Type
Booleans Data Type
Booleans are comprised of two possible values. Are either true or false. They help us to make comparisons, and make decisions based on the outcome
let isRaining = false;
They are heavily used in if... else conditions, switch cases and with comparison or logical operators.
ex. 10 > 15 // returns false
isRaining || 15 > 10 // returns true, because of the or operator.
isRaining && 15 > 10 // returns false, because both parts that surround the and operator have to be true
!isRaining // returns true, because the boolean value is initially true, and the not operator converts it to false.
More on Boolean values documentation!
More on comparison operators documentation!
More on Logical operators documentation!
Conditional statements documentation
Informações
- Descrição
- Junior Certificate Web Developing Fluxograma sobre Booleans data type overview, criado por Kostas Diakogiannis em 12-10-2018.
- Criado por
- Kostas Diakogiannis
- Visualizações
- 3
- Histórico
-
- Criado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 12 out 2018
- Avaliação