When I do the below, I get an empty string for some reason.
var jsObj2 = {
"key1": "value3",
"key4": "value4"
};
var c = '';
for (var key in jsObj2) {
c.concat(key + ': ' + jsObj2[key]);
}
console.log(c);
What I would have hoped for where
key1: value3
key4: value4
Question
Can anyone explain why my attempt doesn't work, and how the NodeJS approach would be?