Javascript conditionals Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

If statement

A

performs a task based on a condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

else statement

A

an addendum to an if statement which runs if the condition is not met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Logical operator

A

&&, || and !

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Logical operator !

A

the NOT operator. can be used to:

  • invert a Boolean value
  • Invert the truthiness of non-boolean values.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are these, , ,=…

A

comparison operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

else if

A

Allows for additional conditions to the if…else statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Switch statement

A

condensed else if

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Condition followed by a ? operator, then two expressions seperated by a :.

A

Ternary operator,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly