I have data that looks like this:
var data = {status: "OK", address11: 0.2, address12: 0.3}
I want this string:
Transfer Successful! You transferred: 0.2 to address11, 0.3 to address12
How do I do this efficiently?
I have this:
var a = 'Transfer Successful! You transferred:'
for (const key of Object.keys(data)) {a.concat(`${data[key]} to ${key}`)}
But it's only appending the last key/value pair.