Javascript Funciones Flashcards

1
Q

Definir función a con parametros x y contenido z

A
function a (x, y){
z
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Llamar a la funcion a con argumento x

A

a(x)

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

Devolver x dentro de una función

A

return x;

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

Definir variable local x valor n dentro de una función

A

var x = n;

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

Definir (o asignar valor) variable global x valor n dentro de una función

A

x = n;

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

Crear objeto(clase javascript) A

A

function A(){
}

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

Crear objeto a

A

function A(){
}

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

Crear instancia b de objeto(clase javascript) A

A

var b = new A();

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

Definir propiedad x valor n de una “clase” javascript

A

this.x = n;

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