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