Clase 3 Flashcards

1
Q

for

A

for(let i = 0 ; i <= 10 ; i++){
console.log(i)
}

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

Detener la ejecición del codigo

A

Break o return

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

while JS

A

while(verdad){
console.log(‘Esto es infinito’)
}

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

do…while

A

let i = 0;
do{
console.log(i)
i++
}while(i<10)

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

Más de 3 casos con una variable

A

let numero = 99
switch(numero){
case 1:
console.log(“Es 1”)
break
case 10:
console.log(“Es 10”)
break
default:
console.log(“No es un numero”)
break
}

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