What is the difference between renderResponse() and renderRawResponse()?

Question

In the context of this exercise, what is the difference between the helper functions renderResponse() and renderRawResponse()?

Answer

The renderResponse() function is used to take in the response and present the results in a clean way on the page. It takes the response object and takes each word, combines them into one string, then displays them on the page.

The renderRawResponse() function is used to take in the response and show the raw JSON object on the page, but not in a clean and presentable way as the previous function. Its purpose is mainly to test and check the results from the request in its original form.