I have the object :
var obj = {
     a : 5,
     b : 6,
     c : 7
}
I want to set zero to every object properties using angular.forEach():
angular.forEach(obj, function(value, key) {
    value = 0;
});
I displayed their values using console.log() and I found out that none of them are zero.
but when I do
obj.a = 0;
obj.b = 0;
obj.c = 0;
Their values are zero.
Can anyone explain about this?
 
    