-
Getting Started
32-
Lecture1.1
-
Lecture1.2
-
Lecture1.3
-
Lecture1.4
-
Lecture1.5
-
Lecture1.6
-
Lecture1.7
-
Lecture1.8
-
Lecture1.9
-
Lecture1.10
-
Lecture1.11
-
Lecture1.12
-
Lecture1.13
-
Lecture1.14
-
Lecture1.15
-
Lecture1.16
-
Lecture1.17
-
Lecture1.18
-
Lecture1.19
-
Lecture1.20
-
Lecture1.21
-
Lecture1.22
-
Lecture1.23
-
Lecture1.24
-
Lecture1.25
-
Lecture1.26
-
Lecture1.27
-
Lecture1.28
-
Lecture1.29
-
Lecture1.30
-
Lecture1.31
-
Lecture1.32
-
-
Check Point
1-
Lecture2.1
-
-
Locked
4-
Lecture3.1
-
Lecture3.2
-
Lecture3.3
-
Lecture3.4
-
Booleans in JavaScript
Yo guys, today we’re gonna look at Boolean In computer science, a Boolean is a logical data type that can have only the values true or false. For example, in JavaScript, Boolean conditionals are often used to decide which sections of code to execute (such as in if statements) or repeat (such as in for loops). The Boolean value is ... values (true and false values) and the different values that are seen as “truthy” or “falsey” by JavaScript. To determine whether a value is truthy or falsey, we can use the built in JavaScript Boolean() function. Other expressions can also be evaluated as true or false, for example, is 7 greater than 5. Is X smaller than Y etc. We’ll go on to use expressions like this when we start using if statements and loops.
Things You Should Know
- a returns true of false
- we primary use Boolean In computer science, a Boolean is a logical data type that can have only the values true or false. For example, in JavaScript, Boolean conditionals are often used to decide which sections of code to execute (such as in if statements) or repeat (such as in for loops). The Boolean value is ... to check conditions
- To determine whether a value is truthy or falsey, we can use the built in JavaScript Boolean() function.
- be sure to remeber that = is an assignment and == allows use to evaluate
- the Boolean In computer science, a Boolean is a logical data type that can have only the values true or false. For example, in JavaScript, Boolean conditionals are often used to decide which sections of code to execute (such as in if statements) or repeat (such as in for loops). The Boolean value is ... function allows us to check for truthy/falsey (things that are not absolute in Boolean In computer science, a Boolean is a logical data type that can have only the values true or false. For example, in JavaScript, Boolean conditionals are often used to decide which sections of code to execute (such as in if statements) or repeat (such as in for loops). The Boolean value is ... value)