Clase 4 Flashcards

1
Q

Función

A

function saludar(){
console.log(‘Saludar’)
}

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

Función con parametro

A

function saludarParametro(nombre){
console.log(Hola ${nombre})
}

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

Retorno de una función

A

function sumar(a,b){
let resultado = a+b;
return resultado
}

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

Función anonima

A

let sumarAnonima = function (a,b){
return (a+b)
}

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

Función flecha

A

let restarFlecha = (a,b) => a-b
let restarFlecha = (a,b) => { return a-b}

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