I have an object that looks like this:
var myObj = {
name:"Bacon",
fat:20,
carb:40
}
Is there a way to do a loop on the keys of the object, to then get its value?
I have an object that looks like this:
var myObj = {
name:"Bacon",
fat:20,
carb:40
}
Is there a way to do a loop on the keys of the object, to then get its value?