Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. var numberObj = {};
  2. var third = 97;
  3. var mult=0;
  4.  
  5. numberObj['ArrayInObj']= [22, 22 , third];
  6.  
  7. numberObj.ArrayInObj.forEach((value, index)=>{
  8. console.log(`ArrayInObject[${index}]: ${value}`);
  9. this.mult = this.mult + value;
  10. console.log('Value of Mult:'+ this.mult);
  11. });
  12.  
  13. console.log('Value of Mult:'+ this.mult);
Add Comment
Please, Sign In to add comment