Using wix aggregate functions

I am new to wix and trying to test something out from the article - https://support.wix.com/en/article/corvid-working-with-aggregations-in-the-data-api .

After getting the max value using the code shown, how can i display this value of 8,192,000 on a rating display on the main page of wix? Currently the output is an array of values but i only need the number value to be parse to the object.

In your case, the output is an array of one JSON object . You can get the value you want, something like this:

let items - results.items.
let item = items[0];
let popMax = item.populationMax;