Can someone please help and give an example of what is happening here.
I am fairly new to Javascript and IT field and unable to understand what is happening. Please help.
let merchantPanToString = '';
for (let i = 0; i < merchantIdList.length; i++) {
merchantPanToString = merchantPanToString + merchantIdList[i]['ref-id'] + ',' + merchantIdList[i]['ref-value'];
if (i != merchantIdList.length - 1) {
merchantPanToString = merchantPanToString + ',';
}
}
console.log(merchantPanToString);
ref-idandref-valuefields. Can't say more without seeingmerchantIdList.