How to Use Generator and Yield in JavaScript | Hacker News Reader