I want to print the details in format: Key = Value,
However I get Undefined as the Valued.
var customers = [{
'custID': 123,
'name': "ABC"
},
{
'custID': 456,
'name': "DEF"
}
]
for (x of customers) {
for (key in x) {
console.log(key + " = " + customers[key])
}
}