Q. What happens if you call next() on a generator that has completed?

यदि आप पूर्ण हो चुके जनरेटर पर अगला() कॉल करते हैं तो क्या होता है?

A
It restarts the generator
B
It throws an error
C
It returns { value: undefined, done: true }
D
It returns the last yielded value

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment