What is a generator function? How is it different from a regular function in terms of execution flow? | Iterator and Generator | javascript Interview Questions | NextRound.in