{"action":"opened","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11162","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11162/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11162/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/11162/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/11162","id":182357499,"number":11162,"title":"Alleged syntax error in correct Js code","user":{"login":"bilgiprog","id":3939828,"avatar_url":"https://avatars.githubusercontent.com/u/3939828?v=3","gravatar_id":"","url":"https://api.github.com/users/bilgiprog","html_url":"https://github.com/bilgiprog","followers_url":"https://api.github.com/users/bilgiprog/followers","following_url":"https://api.github.com/users/bilgiprog/following{/other_user}","gists_url":"https://api.github.com/users/bilgiprog/gists{/gist_id}","starred_url":"https://api.github.com/users/bilgiprog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilgiprog/subscriptions","organizations_url":"https://api.github.com/users/bilgiprog/orgs","repos_url":"https://api.github.com/users/bilgiprog/repos","events_url":"https://api.github.com/users/bilgiprog/events{/privacy}","received_events_url":"https://api.github.com/users/bilgiprog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-11T19:52:07Z","updated_at":"2016-10-11T19:52:07Z","closed_at":null,"body":"Challenge [Profile Lookup](https://www.freecodecamp.com/challenges/profile-lookup) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0</code>.\r\n\r\nThe code below displays \"Syntax Error: expected expression...\" and does not run the tests. However it is correct Javascript code, and it executes and displays result in Firefox Scratchpad and Node 0.12\r\n\r\nMy code:\r\n```javascript\r\n\r\n//Setup\r\nvar contacts = [\r\n    {\r\n        \"firstName\": \"Akira\",\r\n        \"lastName\": \"Laine\",\r\n        \"number\": \"0543236543\",\r\n        \"likes\": [\"Pizza\", \"Coding\", \"Brownie Points\"]\r\n    },\r\n    {\r\n        \"firstName\": \"Harry\",\r\n        \"lastName\": \"Potter\",\r\n        \"number\": \"0994372684\",\r\n        \"likes\": [\"Hogwarts\", \"Magic\", \"Hagrid\"]\r\n    },\r\n    {\r\n        \"firstName\": \"Sherlock\",\r\n        \"lastName\": \"Holmes\",\r\n        \"number\": \"0487345643\",\r\n        \"likes\": [\"Intriguing Cases\", \"Violin\"]\r\n    },\r\n    {\r\n        \"firstName\": \"Kristian\",\r\n        \"lastName\": \"Vos\",\r\n        \"number\": \"unknown\",\r\n        \"likes\": [\"Javascript\", \"Gaming\", \"Foxes\"]\r\n    }\r\n];\r\n\r\n\r\nfunction lookUpProfile(firstName, prop){\r\n// Only change code below this line\r\nfor (var i=0; i<contacts.length; ++i)\r\n    if (contacts[i].firstName == firstName)\r\n      if (contacts[i].hasOwnProperty(prop))\r\n        return contacts[i][prop];\r\n      else \r\n        return \"No such property\";\r\n  \r\n  return \"No such contact\";\r\n// Only change code above this line\r\n}\r\n\r\n// Change these values to test your function\r\nlookUpProfile(\"Akira\", \"likes\");\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"bilgiprog"}}