Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. dict["jerry"] should output 20 as value.
  2.  
  3. var name = "jerry";
  4. dict[name] should output 20 as value
  5.  
  6. var totalAdditions = [];
  7. totalAdditions.push({name:statsObj.author.login, value: additions});
  8. //statsObj.author.login contains "jerry"
  9.  
  10. console.log(obj.login); //also contains value "jerry"
  11. console.log(totalAdditions[obj.login]); //returns undefined??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement