I am new to coding.Please be kind to answer :)
I have an array of objects.
[ { UPDATED_BY: '2301132411' },
{ UPDATED_BY: '1432007924' },
{ UPDATED_BY: '973551993' },
{ UPDATED_BY: '1082191138' },
{ UPDATED_BY: '1079399273' } ]
I want the output in below format: ('2301132411','1432007924','973551993','1082191138','1079399273')
I was able to output one value by using below command.I want to use loop here to fetch all the values.Please help with the exact code.Thanks in advance.
var k={};
var arr = [ { UPDATED_BY: '2301132411' },
{ UPDATED_BY: '1432007924' },
{ UPDATED_BY: '973551993' },
{ UPDATED_BY: '1082191138' },
{ UPDATED_BY: '1079399273' } ];
k=arr[0];
console.log(k);
output: 1432007924