From the course: Creating Angular Libraries

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Coding challenge

Coding challenge

(upbeat music) - [Instructor] Here's a challenge for you. Create a JavaScript function that calculates the average of an array of numbers of any length and export it as part of the main entry point for our custom library. This function should implement a caching mechanism of some kind to return cached data for a given input, if cached data exists. Good luck.

Contents