Instruction: Define what Generators are in JavaScript and demonstrate their usage with an example.
Context: This question aims to assess the candidate's understanding of Generators in JavaScript, their syntax, and how they can be used to control function execution.
easy
medium
medium
hard
hard
hard