DEV Community

Discussion on: Understanding Memoization In JavaScript

Collapse
diogorodrigues profile image
Diogo Rodrigues • Edited

Thank you!!! But in this case the examples are different, because in the first one you created a factorial of a number using recursion function. I didn't realize this difference before; I was thinking to pass a recursive function in the second example. Sorry for my bad.