{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9903","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9903/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9903/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9903/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9903","id":167710861,"number":9903,"title":"Stand in Line || Right code but cannot pass challenge","user":{"login":"McBiggos","id":20635180,"avatar_url":"https://avatars.githubusercontent.com/u/20635180?v=3","gravatar_id":"","url":"https://api.github.com/users/McBiggos","html_url":"https://github.com/McBiggos","followers_url":"https://api.github.com/users/McBiggos/followers","following_url":"https://api.github.com/users/McBiggos/following{/other_user}","gists_url":"https://api.github.com/users/McBiggos/gists{/gist_id}","starred_url":"https://api.github.com/users/McBiggos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McBiggos/subscriptions","organizations_url":"https://api.github.com/users/McBiggos/orgs","repos_url":"https://api.github.com/users/McBiggos/repos","events_url":"https://api.github.com/users/McBiggos/events{/privacy}","received_events_url":"https://api.github.com/users/McBiggos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-26T21:01:29Z","updated_at":"2016-07-26T21:40:39Z","closed_at":null,"body":"Challenge [Stand in Line](https://www.freecodecamp.com/challenges/stand-in-line#?solution=%0Afunction%20nextInLine(arr%2C%20item)%20%7B%0A%20%20%2F%2F%20Your%20code%20here%0A%20%20testArr.push(item)%3B%0A%20%20item%20%3D%20testArr%5B0%5D%3B%0A%20%20testArr.shift()%3B%0A%20%20return%20item%3B%20%20%2F%2F%20Change%20this%20line%0A%7D%0A%0A%2F%2F%20Test%20Setup%0Avar%20testArr%20%3D%20%5B5%2C6%2C7%2C8%2C9%5D%3B%0A%0A%2F%2F%20Display%20Code%0Aconsole.log(%22Before%3A%20%22%20%2B%20JSON.stringify(testArr))%3B%0Aconsole.log(nextInLine(testArr%2C%201))%3B%20%2F%2F%20Modify%20this%20line%20to%20test%0Aconsole.log(%22After%3A%20%22%20%2B%20JSON.stringify(testArr))%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41</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\nfunction nextInLine(arr, item) {\r\n  // Your code here\r\n  testArr.push(item);\r\n  item = testArr[0];\r\n  testArr.shift();\r\n  return item;  // Change this line\r\n}\r\n\r\n// Test Setup\r\nvar testArr = [5,6,7,8,9];\r\n\r\n// Display Code\r\nconsole.log(\"Before: \" + JSON.stringify(testArr));\r\nconsole.log(nextInLine(testArr, 1)); // Modify this line to test\r\nconsole.log(\"After: \" + JSON.stringify(testArr));\r\n\r\n```\r\n\r\nHello, I wrote code that should work just fine, but it doesn't.\r\nAll tasks are ticked except for \"nextInLine([5,6,7,8,9], 1) should return 5\"\r\nI changed code to check this particular case and even though it returns right answer, task isn't marked as completed.\r\n\r\nEDIT: I'm attaching a screenshot of what my browser displays.\r\n![przechwytywanie](https://cloud.githubusercontent.com/assets/20635180/17155542/d46e3544-5385-11e6-9e3b-98ecee795bbe.JPG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/235414247","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9903#issuecomment-235414247","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9903","id":235414247,"user":{"login":"McBiggos","id":20635180,"avatar_url":"https://avatars.githubusercontent.com/u/20635180?v=3","gravatar_id":"","url":"https://api.github.com/users/McBiggos","html_url":"https://github.com/McBiggos","followers_url":"https://api.github.com/users/McBiggos/followers","following_url":"https://api.github.com/users/McBiggos/following{/other_user}","gists_url":"https://api.github.com/users/McBiggos/gists{/gist_id}","starred_url":"https://api.github.com/users/McBiggos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McBiggos/subscriptions","organizations_url":"https://api.github.com/users/McBiggos/orgs","repos_url":"https://api.github.com/users/McBiggos/repos","events_url":"https://api.github.com/users/McBiggos/events{/privacy}","received_events_url":"https://api.github.com/users/McBiggos/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T21:40:39Z","updated_at":"2016-07-26T21:40:39Z","body":"@dhcodes Now as I look into it, it seems so obvious I should have used arr instead of testArr.\r\nThanks for fast reply."}}
{"actor":{"display_login":"McBiggos"}}