Computers have this emergent property where as they become more complex they start to do things just like us. Memoization is local memorization of the computer program that gets called again. This is known as functional programming which is composed of pure functions. If you replace the function call with the return value of the function the program will behave exactly the same. The first thing is to set up an array or object literal that will serve as the memoy(yes that is an intentional joke) Lets play around and create a function that creates human readable phone numbers.
Share Your Thoughts