ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

Which method of the iterable object returns an iterator object for the collection?

Answer & Solution
Correct Answer: Option B
An iterable object represents a collection of values that can be iterated. An iterable object must define a method named __iterator__() (with two underscores at the start and end of the name) which returns an iterator object for the collection.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.