{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9742","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9742/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9742/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9742/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9742","id":165837736,"number":9742,"title":"This should work. Output seen matches. But tests fail.","user":{"login":"aprabhak","id":8558858,"avatar_url":"https://avatars.githubusercontent.com/u/8558858?v=3","gravatar_id":"","url":"https://api.github.com/users/aprabhak","html_url":"https://github.com/aprabhak","followers_url":"https://api.github.com/users/aprabhak/followers","following_url":"https://api.github.com/users/aprabhak/following{/other_user}","gists_url":"https://api.github.com/users/aprabhak/gists{/gist_id}","starred_url":"https://api.github.com/users/aprabhak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprabhak/subscriptions","organizations_url":"https://api.github.com/users/aprabhak/orgs","repos_url":"https://api.github.com/users/aprabhak/repos","events_url":"https://api.github.com/users/aprabhak/events{/privacy}","received_events_url":"https://api.github.com/users/aprabhak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T17:25:40Z","updated_at":"2016-07-15T17:35:30Z","closed_at":"2016-07-15T17:35:30Z","body":"Challenge [Record Collection](https://www.freecodecamp.com/challenges/record-collection#?solution=%0A%2F%2F%20Setup%0Avar%20collection%20%3D%20%7B%0A%20%20%20%20%222548%22%3A%20%7B%0A%20%20%20%20%20%20%22album%22%3A%20%22Slippery%20When%20Wet%22%2C%0A%20%20%20%20%20%20%22artist%22%3A%20%22Bon%20Jovi%22%2C%0A%20%20%20%20%20%20%22tracks%22%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%22Let%20It%20Rock%22%2C%20%0A%20%20%20%20%20%20%20%20%22You%20Give%20Love%20a%20Bad%20Name%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%20%222468%22%3A%20%7B%0A%20%20%20%20%20%20%22album%22%3A%20%221999%22%2C%0A%20%20%20%20%20%20%22artist%22%3A%20%22Prince%22%2C%0A%20%20%20%20%20%20%22tracks%22%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%221999%22%2C%20%0A%20%20%20%20%20%20%20%20%22Little%20Red%20Corvette%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%20%221245%22%3A%20%7B%0A%20%20%20%20%20%20%22artist%22%3A%20%22Robert%20Palmer%22%2C%0A%20%20%20%20%20%20%22tracks%22%3A%20%5B%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%20%225439%22%3A%20%7B%0A%20%20%20%20%20%20%22album%22%3A%20%22ABBA%20Gold%22%0A%20%20%20%20%7D%0A%7D%3B%0A%2F%2F%20Keep%20a%20copy%20of%20the%20collection%20for%20tests%0Avar%20collectionCopy%20%3D%20JSON.parse(JSON.stringify(collection))%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line%0Afunction%20updateRecords(id%2C%20prop%2C%20value)%20%7B%0A%20%20collection%5Bid%5D%5Bprop%5D%20%3D%20value%3B%0A%20%20return%20collection%3B%0A%7D%0A%0A%2F%2F%20Alter%20values%20below%20to%20test%20your%20code%0AupdateRecords(5439%2C%20%22artist%22%2C%20%22ABBA%22)%3B%0AupdateRecords(5439%2C%22tracks%22%2C%22Take%20a%20Chance%20on%20Me%22)%3B%0AupdateRecords(1245%2C%20%22tracks%22%2C%20%22Addicted%20to%20Love%22)%3B%0AupdateRecords(2468%2C%20%22tracks%22%2C%20%22Free%22)%3B%0AupdateRecords(2548%2C%20%22tracks%22%2C%20%22%22)%3B%0A%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nMy code:\r\n```javascript\r\n\r\n// Setup\r\nvar collection = {\r\n    \"2548\": {\r\n      \"album\": \"Slippery When Wet\",\r\n      \"artist\": \"Bon Jovi\",\r\n      \"tracks\": [ \r\n        \"Let It Rock\", \r\n        \"You Give Love a Bad Name\" \r\n      ]\r\n    },\r\n    \"2468\": {\r\n      \"album\": \"1999\",\r\n      \"artist\": \"Prince\",\r\n      \"tracks\": [ \r\n        \"1999\", \r\n        \"Little Red Corvette\" \r\n      ]\r\n    },\r\n    \"1245\": {\r\n      \"artist\": \"Robert Palmer\",\r\n      \"tracks\": [ ]\r\n    },\r\n    \"5439\": {\r\n      \"album\": \"ABBA Gold\"\r\n    }\r\n};\r\n// Keep a copy of the collection for tests\r\nvar collectionCopy = JSON.parse(JSON.stringify(collection));\r\n\r\n// Only change code below this line\r\nfunction updateRecords(id, prop, value) {\r\n  collection[id][prop] = value;\r\n  return collection;\r\n}\r\n\r\n// Alter values below to test your code\r\nupdateRecords(5439, \"artist\", \"ABBA\");\r\nupdateRecords(5439,\"tracks\",\"Take a Chance on Me\");\r\nupdateRecords(1245, \"tracks\", \"Addicted to Love\");\r\nupdateRecords(2468, \"tracks\", \"Free\");\r\nupdateRecords(2548, \"tracks\", \"\");\r\n\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/233016843","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9742#issuecomment-233016843","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9742","id":233016843,"user":{"login":"erictleung","id":2754821,"avatar_url":"https://avatars.githubusercontent.com/u/2754821?v=3","gravatar_id":"","url":"https://api.github.com/users/erictleung","html_url":"https://github.com/erictleung","followers_url":"https://api.github.com/users/erictleung/followers","following_url":"https://api.github.com/users/erictleung/following{/other_user}","gists_url":"https://api.github.com/users/erictleung/gists{/gist_id}","starred_url":"https://api.github.com/users/erictleung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictleung/subscriptions","organizations_url":"https://api.github.com/users/erictleung/orgs","repos_url":"https://api.github.com/users/erictleung/repos","events_url":"https://api.github.com/users/erictleung/events{/privacy}","received_events_url":"https://api.github.com/users/erictleung/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T17:35:30Z","updated_at":"2016-07-15T17:35:30Z","body":"@aprabhak \r\nthanks for the issue but if you get stuck with a challenge, please first ask questions to the [Help Room](https://gitter.im/FreeCodeCamp/Help). Happy coding!"}}
{"actor":{"display_login":"erictleung"}}