Javascript conditionals Flashcards
1
Q
If statement
A
performs a task based on a condition
2
Q
else statement
A
an addendum to an if statement which runs if the condition is not met
3
Q
Logical operator
A
&&, || and !
4
Q
Logical operator !
A
the NOT operator. can be used to:
- invert a Boolean value
- Invert the truthiness of non-boolean values.
5
Q
What are these, , ,=…
A
comparison operators
6
Q
else if
A
Allows for additional conditions to the if…else statement.
7
Q
Switch statement
A
condensed else if
8
Q
Condition followed by a ? operator, then two expressions seperated by a :.
A
Ternary operator,