I have a JavaScript object :
var avgHeight = AvgHeight({height:174, weight:69}, {height:190, weight:103}, {height:500, weight:103});
I want to add all the height values and return the average.
For example: 174+190+500/3 = xxx
How do I iterate and fetch the property values from the above object.
AvgHeightfunction