Back to All Challenges
Back to all challenges
The Forgetful Memoizer
Solve the "The Forgetful Memoizer" advanced challenge. Focus: javascript logic.
advancedjavascript
Terminal
user@debugger:~/project$ node app.js
The memoizer silently fails to return cached values when the cached result is falsy (0, false, '', null). It treats a cached falsy value as a cache miss and re-executes the expensive function every time, while truthy values are cached correctly.
user@debugger:~/project$ ▌
Test Cases (Click to expand)