Async Await

Quiz
•
Computers
•
Professional Development
•
Hard
agustin kenny
Used 22+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Cómo escribimos una generator function?
function#
function*
()* => { }
_function
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Una `async function` es...
Una promesa que solo puede resolverse
Una función que retorna directamente el valor resuelto
Una función que retorna siempre una promesa
Una función que se ejecuta de manera sincronica
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué se va a almacenar en result?
function* generatorUnreacheableValue() { console.log("Iniciando..."); return "Franco"; yield "Toni" } var generatorObject = generatorUnreacheableValue(); var result = generatorObject.next();
{ done: true, value: "Franco" }
{ done: false: value: "Franco" }
{ done: true, value: "Toni" }
{ done: false, value: iniciando... }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
¿Qué me va a llegar como valor de generatorObject?
function* generatorShowInstructors() { console.log("Iniciando generator function"); yield "Franco"; yield "Toni" console.log("Generator function terminada"); } var generatorObject = generatorShowInstructors(); generatorObject.next();
Un string `Iniciando generator function`
Un objecto con {done: false, value: 'Franco}
undefined
Un Generator Object
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
¿Qué palabras reservadas se usan para detener y/o finalizar una generator function?
yield
return
m
finally
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Van a ganar puntos con esta pregunta?
Si
No
En el redemption, puede ser.
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Selecciona las afirmaciones que son correctas
No es posible de manera nativa en node usar await sin estar dentro de una funcion
las arrow function no soportan async/await
Puedo usar await sin async en la consola del navegador
con async/await necesito obligatoriamente usar try catch para manejar errores
Similar Resources on Wayground
12 questions
Neural Networks Basic with Python

Quiz
•
University - Professi...
9 questions
C# Programming Functions and Procedures

Quiz
•
Professional Development
10 questions
Advanced JS

Quiz
•
Professional Development
9 questions
JavaScript Introduction

Quiz
•
Professional Development
9 questions
Synchronized block on object"

Quiz
•
Professional Development
11 questions
Java Fundamentals

Quiz
•
Professional Development
10 questions
PHP Tours Meetup #22 (Super Apéro)

Quiz
•
University - Professi...
11 questions
Chadev AI Coding Assistant

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade