Retrieve data from dataset and use them in the code

Hello everybody,
someone can help me?
i have that dataset called Members and inside it there are the fields that corrispond to fitness excercises, and every users update its personal record.

i would like to retrieve that data and use it in the code…

This should help you …
https://www.wix.com/velo/reference/wix-dataset/dataset/getitems

$w.onReady( () => {
   $w("#myDataset").onReady( () => {
     $w("#myDataset").getItems(1, 1)
      .then((result) => {
         let items = result.items;
         let totalCount = result.totalCount;
         let offset = result.offset;
         console.log(items)
      } )
      .catch( (err) => {
         let errMsg = err.message;
         let errCode = err.code;
      });
   });
});

hello…thank you very much for the help i am starting to understand.
now in the console.log is shown an Array…
how can i save the element “weight” of this array?
Array(1)
json Tabella Copia JSON
0:
{…}
json Tabella Copia JSON
cleanJerk:
130
weight:
76
benchPress:
100
email:
“d.zibra@yahoo.it”
_id:
“10544d32-f484-47f0-aa55-1fe052227744”
_owner:
“10544d32-f484-47f0-aa55-1fe052227744”
weightedPistol:
10
_createdDate:
“Sun Oct 11 2020 15:58:04 GMT+0200 (Ora legale dell’Europa centrale)”
snatch:
105
pistol:
25
_updatedDate:
“Tue Apr 13 2021 14:49:19 GMT+0200 (Ora legale dell’Europa centrale)”
weightPullUp:
20
age:
35

https://www.wix.com/velo/forum/coding-with-velo/retrieve-data-from-dataset-and-use-them-in-the-code-1