Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dict["jerry"] should output 20 as value.
- var name = "jerry";
- dict[name] should output 20 as value
- var totalAdditions = [];
- totalAdditions.push({name:statsObj.author.login, value: additions});
- //statsObj.author.login contains "jerry"
- console.log(obj.login); //also contains value "jerry"
- console.log(totalAdditions[obj.login]); //returns undefined??
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement