{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6780","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6780/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6780/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6780/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6780","id":131848538,"number":6780,"title":"Test pass when they should not","user":{"login":"MichaelLeeHobbs","id":6986471,"avatar_url":"https://avatars.githubusercontent.com/u/6986471?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelLeeHobbs","html_url":"https://github.com/MichaelLeeHobbs","followers_url":"https://api.github.com/users/MichaelLeeHobbs/followers","following_url":"https://api.github.com/users/MichaelLeeHobbs/following{/other_user}","gists_url":"https://api.github.com/users/MichaelLeeHobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelLeeHobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelLeeHobbs/subscriptions","organizations_url":"https://api.github.com/users/MichaelLeeHobbs/orgs","repos_url":"https://api.github.com/users/MichaelLeeHobbs/repos","events_url":"https://api.github.com/users/MichaelLeeHobbs/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelLeeHobbs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-06T11:56:59Z","updated_at":"2016-02-07T05:44:02Z","closed_at":"2016-02-07T05:44:02Z","body":"Had a typo in my code and most of the test past when none of them should have. See result = loolup[val]; this was returning undefined but the first 8 test passed.\r\n\r\nChallenge [Using Objects for Lookups](http://www.freecodecamp.com/challenges/using-objects-for-lookups#?solution=%2F%2F%20Setup%0Afunction%20phoneticLookup(val)%20%7B%0A%20%20var%20result%3B%0A%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%20%20lookup%20%3D%20%7B%0A%20%20%20%20%22alpha%22%3A%20%22Adams%22%2C%0A%20%20%20%20%22bravo%22%3A%20%22Boston%22%2C%0A%20%20%20%20%22charlie%22%3A%20%22Chicago%22%2C%0A%20%20%20%20%22delta%22%3A%20%22Denver%22%2C%0A%20%20%20%20%22echo%22%3A%20%22Easy%22%2C%0A%20%20%20%20%22foxtrot%22%3A%20%22Frank%22%0A%20%20%7D%3B%0A%20%20result%20%3D%20lookup%5Bval%5D%3B%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%0A%20%20return%20result%3B%0A%7D%0A%0A%2F%2F%20Change%20this%20value%20to%20test%0AphoneticLookup(%22charlie%22)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</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// Setup\r\nfunction phoneticLookup(val) {\r\n  var result;\r\n\r\n  // Only change code below this line\r\n  lookup = {\r\n    \"alpha\": \"Adams\",\r\n    \"bravo\": \"Boston\",\r\n    \"charlie\": \"Chicago\",\r\n    \"delta\": \"Denver\",\r\n    \"echo\": \"Easy\",\r\n    \"foxtrot\": \"Frank\"\r\n  };\r\n  result = loolup[val];\r\n  // Only change code above this line\r\n  return result;\r\n}\r\n\r\n// Change this value to test\r\nphoneticLookup(\"charlie\");\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/180956585","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6780#issuecomment-180956585","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6780","id":180956585,"user":{"login":"SaintPeter","id":553494,"avatar_url":"https://avatars.githubusercontent.com/u/553494?v=3","gravatar_id":"","url":"https://api.github.com/users/SaintPeter","html_url":"https://github.com/SaintPeter","followers_url":"https://api.github.com/users/SaintPeter/followers","following_url":"https://api.github.com/users/SaintPeter/following{/other_user}","gists_url":"https://api.github.com/users/SaintPeter/gists{/gist_id}","starred_url":"https://api.github.com/users/SaintPeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaintPeter/subscriptions","organizations_url":"https://api.github.com/users/SaintPeter/orgs","repos_url":"https://api.github.com/users/SaintPeter/repos","events_url":"https://api.github.com/users/SaintPeter/events{/privacy}","received_events_url":"https://api.github.com/users/SaintPeter/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T05:44:01Z","updated_at":"2016-02-07T05:44:01Z","body":"``` \r\nlookup = {  // <------ defined as lookup\r\n    \"alpha\": \"Adams\",\r\n    \"bravo\": \"Boston\",\r\n    \"charlie\": \"Chicago\",\r\n    \"delta\": \"Denver\",\r\n    \"echo\": \"Easy\",\r\n    \"foxtrot\": \"Frank\"\r\n  };\r\n  result = loolup[val];  // <-----  loolup, not lookup\r\n```\r\n\r\nYour code is wrong.  You are not referencing the variable you defined.\r\n\r\nIn the future, please ask for help in [Help Chat](https://gitter.im/FreeCodeCamp/Help).\r\n\r\nThanks and Happy Coding!"}}