Coding data Into a dataset and then displaying it in a table

import {getStockInfo} from ‘backend/serviceModule’ ;

var airlines = [ “AAL” , “UAL” , “DAL” ];

$w.onReady( function () {
//TODO: write your page related code here…

});

export function button1_click_1(event, $w) {
getStockInfo(airlines[ 0 ])
.then(currencyInfo => {

    $w( "#dynamicDataset" ).setFieldValue( "todays_change" , (parseInt(currencyInfo[ "Time Series (Daily)" ][ "2020-07-24" ][ "4. close" ],  10 )).toFixed( 2 )); 
}) 

getStockInfo(airlines[ 1 ])
.then(currencyInfo => {

    $w( "#dynamicDataset" ).setFieldValue( "todays_change" , (parseInt(currencyInfo[ "Time Series (Daily)" ][ "2020-07-24" ][ "4. close" ],  10 )).toFixed( 2 )); 
}) 

getStockInfo(airlines[ 2 ])
.then(currencyInfo => {

    $w( "#dynamicDataset" ).setFieldValue( "todays_change" , (parseInt(currencyInfo[ "Time Series (Daily)" ][ "2020-07-24" ][ "4. close" ],  10 )).toFixed( 2 )); 
})