var sum = 0;
                                          var obj = {prop1: 5, prop2: 13, prop3: 8};
                                          
                                          for each (var item in obj) {
                                            sum += item;
                                          }
                                          
                                          console.log(sum); // logs "26", which is 5+13+8
                                        
                                        

Y he forEach() method executes a provided function once for each array element.