My goal is to retrieve data from this API: and store it in a JavaScript variable so that when I log the variable inside the browser console, I will see a tree structure related to the API. To better illustrate what I mean, here's an image of the desired outcome: https://i.sstatic.net/bjipu.jpg
The code snippet without any functionality shown here: https://i.sstatic.net/IfVGZ.jpg
with