I have the following two objects that will always have the same number / name of fields:
var a = {
           c: 25,
           field1: 10,
           field2: 20,
           field3: "x"
         }
var b = {
           c: 25,
           field1: 10,
           field2: 22,
           field3: "y"
         }
Is there a way that I can have put into a variable if there are changes to the fields so I have a variable to show this that contains text something like:
var changes = "field2: 20 > 22,  field3: x > y"
What I think I need to do is to somehow iterate through the values of each field and compare but I am not sure how to do that with Javascript.
 
    