when i execute following code:
var myObj =
{
"name": "moose",
"age": "22",
"friends": "0",
};
for (x in myObj) {
console.log(x);
}
I get following output:
{"name":"moose","age":"22","friends":"0"}
But I only want the values, in order to stringify them afterwards.
I tried console.log(Object.values(x))
but it didnt work out.
Desired output:
moose, 22, 0
Thanks in Advance