Measure the performance impact of memoization using console.time and console.timeEnd.
Asked in frontend interviews at Expedia, Uber, LinkedIn and 2 more