Exercise: Batching and Caching with Callback

Practice how to implement batching and caching for an API using callbacks.

Problem statement

Implement batching and caching for the totalSales API examples using only callbacks, streams, and events (without using promises or async/await).

Pay attention to Zalgo when returning cached values!

Coding challenge

Write your solution code in the following code widget. We’ve already added the package.json file for your ease.

Get hands-on with 1200+ tech skills courses.