
JavaScriptAvanzado-II
Quiz
•
Fun, Education
•
1st - 12th Grade
•
Medium
Viviana Cruz
Used 10+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué es un CLOSURE?
una funcion que retorna otra funcion
una funcion que retorna otra funcion y que usa una variable definida en el scope de la funcion que la retornó
una variable que dentro del scope de una funcion retornada por otra funcion
es un mito de JavaScript
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿En qué momento pasa una función que está en el event queue al execution stack?
cuando pasa una determinada cantidad de tiempo.
cuando el execution stack esta vacio.
no se puede predecir el momento.
cuando el servicio ecterno termina de ejecutar el callback.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿En qué orden van a salir los outputs?
setTimeOut(function() {
console.log('uno');
}, 1000);
setTimeOut(function() {
console.log('dos');
}, 1500);
setTimeOut(function() {
console.log('tres');
}, 0);
console.log('cuatro');
cuatro uno dos tres
uno dos tres cuatro
tres dos uno cuatro
cuatro tres uno dos
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
La diferencia entre 'call' y 'bind' es que:
Bind retorna una nueva funcion, call invoca la funcion
Call cambia el valor del this, y bind no
no hay diferencia
los argumentos que reciben
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En JavaScript podemos controlar el valor del keyword this de manera arbitraria.
Verdadero
Falso
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
En el código siguiente, qué variable quedaría en un CLOSURE al invocar `makeAdder`?
function makeAdder(x) {
return function(y) {
return x + y;
}
}
var add5 = makeAdder(5);
var add10 = makeAdder(10);
y
no hay closure
x
x e y
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
La diferencia entre `call` y `apply` es:
los parametros que reciben
una retorna una funcion nueva y otraa la invoca
la forma en que cambian el this
no hay ninguna diferencia
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Con la función _____ podemos forzar el valor de la variable this.
console.log
bind
this
new
Similar Resources on Wayground
13 questions
Cuento de navidad
Quiz
•
1st - 10th Grade
10 questions
Problemas filosoficos
Quiz
•
4th Grade
12 questions
Heridas - primeros auxilios
Quiz
•
1st Grade
11 questions
Un verdadero influencer. Video
Quiz
•
9th Grade
12 questions
Las tortugas
Quiz
•
1st - 3rd Grade
10 questions
Terra Baixa: Acte II
Quiz
•
12th Grade
10 questions
LOS DOS AMIGOS Y EL OSO
Quiz
•
5th Grade
9 questions
LA PAPA, TESORO DE LA TIERRA
Quiz
•
5th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Fun
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
11 questions
Movies
Quiz
•
7th Grade
13 questions
Halloween Trivia
Quiz
•
9th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
15 questions
Fast food
Quiz
•
7th Grade
26 questions
SLIME!!!!!
Quiz
•
KG - 12th Grade