Multiple ChoiceIntermediate 30s
Once Function Pattern
Choose the best answer for: ensuring single execution
Options
- 1Once patterns use generators to yield the value only one time
- 2Once is a built-in method on Function.prototype in JS
- 3Once requires a class to wrap the function and guard calls
- 4A closure with a 'called' flag ensures function runs only once
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.