Clase 1 Flashcards

1
Q

Uso de let

A

let edad
edad = 26
console.log(edad)

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

Uso de const JS

A

const apellido = ‘Turra’
try{
console.log(apellido)
}catch(error){
console.error(error)
}

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

Concatenación

A

let textoA = “CODER”
let textoB= “HOUSE”

const blanco = “ “

let resultadoB = textoA + blanco + textoB
console.log(resultadoB)
let resultadoC = textoA + 1
console.log(resultadoC)

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

alertar

A

alert(dato)

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

Recibir valor JS

A

prompt(“Ingrese su nombre”)

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