Looping Objects: Object Keys, Values and Entries
11.1
Below is the entries variable that stores an empty array. Use the for-of loop together with the Object.keys() method to loop over the thirdParty.goodreads property (array) of the first book object from the books array. For each key, push a new array that contains that key to the entries array.
In the end, the entries array should be filled with arrays containing keys:
11.2
Use the for-of loop together with the Object.values() method and Array's entries() method to loop over thirdParty.goodreads property of the first book from the books array.
Push each value to the appropriate inner array in the entries array (use index from entries()).
11.3
Use the Object.entries() method on the thirdParty.goodreads property of the first book from the books array. Assign the returned value to the variable called entries2.
11.4
Log the entries and entries2 variables to the console, and compare them. They should look the same.