Understanding Javascript Iteration Protocols

preview_player
Показать описание
This videos discusses about iteration protocols that are used to override or make any object iterable using for..of or for..await...of loop.
We will see how to override the existing functionality and how to create one.

#javascript #forloop #iteration #interview

#Chapters#
00:00 Intro
00:29 Interview Question
00:55 Why for..of works with Arrays
01:31 Overriding Iteration behaviour
03:06 Iterable vs Iterator
03:19 Question Implementation
04:47 Using Generator Function
05:39 Iterating over Objects
08:57 Summary of syncIterator
09:12 for...await...of
10:53 Outro. Thanks for Watching!
Рекомендации по теме
visit shbcf.ru