Please enable JavaScript.
Coggle requires JavaScript to display documents.
Design Notes 13th April - Coggle Diagram
Design Notes 13th April
Logical Operators
AND operator: represented with "&&", this operator serves to tell us that if one condition AND another condition are met, then something will happen because of that.
OR operator: represented with "||", this operator serves to tell us that if one condition OR another condition is met, then something will happen because of that.
-
Truthy and Falsy
This is a way to evaluate non-boolean data types (ie; numerical, string, etc). The Console can determine whether a variable has a value assigned to it or not, regardless of whether it is in quotes or not.
-
Conditional Statements
-
If, Then: IF this condition is met THEN something happens because the condition is met
If, Then, Else: IF this condition is met THEN something happens because the condition is met, ELSE something will happen because the condition has not been met