JavaScript Conditional statement Flashcards

1
Q

If statement

A

Es una condicional que se ejecuta cuando es verdad algo y no cuando es falso

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

If…Else statemente

A

Se utiliza para añadir un nuevo comportamiento a la condicional que se evalúa a false

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

Comparison Operators

A
Less than : <
Greather than: >
Less than or equal to: <=
Greater than or equal to: >=
is equal to: ===
is not equal to: !==
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Logical operators

A

&& and operator
|| or operator
! not operator

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

Falsy Values

A
Todo lo demás que no sea falsy es thruty 
0
"" o ''
null
undefined
NaN
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

short-circuit evaluation

A

Funcion con operadores logicos como por ejemplo el || que pone siempre el valor que no es falsy

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

ternary operator

A

Es un short-hand syntax de if…else para simplificar la primera expresion se ejecuta si es true y la segunda sino

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

else if

A

Nos permite meter mas condicionales como resultado

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

switch

A

es otra forma de else if para multiples resultados de una expresion

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