Flussdiagramm
Booleans data type overview
Inhalt des Flussdiagramms
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
Informationen
- Beschreibung
- Junior Certificate Web Developing Flussdiagramm am Booleans data type overview, erstellt von Kostas Diakogiannis am 12/10/2018.
- Erstellt von
- Kostas Diakogiannis
- Aufrufe
- 4
- Verlauf
-
- Erstellt von Kostas Diakogiannis · 12 Okt 2018
- Kopiert von Kostas Diakogiannis · 12 Okt 2018
- Kopiert von Kostas Diakogiannis · 12 Okt 2018
- Kopiert von Kostas Diakogiannis · 12 Okt 2018
- Bewertung