Using JavaScript to Implement the Same Stateful Program in Both OOP and FP | Hacker News Reader