Memoization and recursive functions in JavaScript | Dark Hacker News