This code demonstrates 2 approaches to completing the same task, and performs the following actions:
- The task is to hit the Marvel rest endpoint, and return a list of characters.
- Take the 4th character in that list, fetch its comics, and then load the image for that comic.
- Once those requests are done, the image and list of character names are bound to the ui.
/*
* Standard way
*/