1/8
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
for await… of
Statement that creates a loop itersting over async iterable objects and sync iterables
for await of usage context
Usable where statement “await” is able to be applied, which includes inside an async function body and in a module.
for await of syntax
for await (variable “of” iterable)
statement
“variable” syntax defintion
Receives a value from the sequence each iteration. Can be declared or an assignment target.
“Assignment Target” Examples
Previously declared variable, object property, or a destructuring pattern.
“iterable” syntax definition
The async or sync iterable that the loop operates on
“statement” syntax definition
The statement to be executed every iteration. Can reference the variable and use block statements.
Block Statement
Allows you to use multiple statements where JavaScript expects one.