Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var numberObj = {};
- var third = 97;
- var mult=0;
- numberObj['ArrayInObj']= [22, 22 , third];
- numberObj.ArrayInObj.forEach((value, index)=>{
- console.log(`ArrayInObject[${index}]: ${value}`);
- this.mult = this.mult + value;
- console.log('Value of Mult:'+ this.mult);
- });
- console.log('Value of Mult:'+ this.mult);
Add Comment
Please, Sign In to add comment