Question 9/24
advanced
Select one answer

What is a generator function in JavaScript?

A function that generates random numbers
A function that can be paused and resumed, defined with function* and yield
A function that creates new functions
A function that runs in the background

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.