Practice Activity

Convert the Joke application into an application that uses a service to store the jokes.

Also support a max jokes provider which we inject into this service and we can configure with different values.

Make sure the number of jokes doesn’t exceed this max value.

Steps

Fork this blitz:

Complete the JokeService class with the required functionality.

Read any TODO comments in the blitz for hints.


Caught a mistake or want to contribute to the book? Edit this page on GitHub!