InterviewBuddy
All interview questions

In JavaScript, what is a concrete example of iterator protocol?

Intermediate

Answer

A generator returns an iterator for for-of.