{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9063","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9063/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9063/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9063/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9063","id":159542621,"number":9063,"title":"Add Somewhere in FCC Curriculum Describing How the Tests Work","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},"labels":[{"id":199835579,"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/Discussing","name":"Discussing","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-06-10T01:30:50Z","updated_at":"2016-12-01T09:31:14Z","closed_at":null,"body":"<!-- FreeCodeCamp Issue Template -->\r\n\r\n<!-- NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/Help -->\r\n\r\n<!-- Please provide as much detail as possible for us to fix your issue -->\r\n\r\n<!-- Remove any heading sections you did not fill out -->\r\n#### Challenge Name\r\n\r\n<!-- Insert link to challenge below -->\r\n\r\nMainly JavaScript challenges\r\n#### Issue Description\r\n\r\n<!-- Describe below when the issue happens and how to reproduce it -->\r\n\r\nWe've had many coding issues made on GitHub (a list of some from the past few months: #9532, #9137, #9118, #8940, #9058, #8436, #8266, #8156, #8092 [comment within this issue], #7655, #7441, #7629, #7470, #7453, #7442, #5290, #4819, #4733, #4686, #4187, #3755, #1345) on why their code doesn't work, which turn out to be because they have a global variable they mutate with their function.\r\n\r\n#### Proposed Fix (Updated)\r\n\r\n~~Somewhere early in the JavaScript challenges have a note on how the tests work, in that they will only run your function and any global variables mutated in the process will keep their state.~~\r\n\r\n- Detect unsafe global variable code and wrap them in isolated blocked scope. \r\n- Display a notification in such cases if applicable and tests fail to run.\r\n\r\ncc/ @FreeCodeCamp/moderators \r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/264123842","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/9063#issuecomment-264123842","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/9063","id":264123842,"user":{"login":"raisedadead","id":1884376,"avatar_url":"https://avatars.githubusercontent.com/u/1884376?v=3","gravatar_id":"","url":"https://api.github.com/users/raisedadead","html_url":"https://github.com/raisedadead","followers_url":"https://api.github.com/users/raisedadead/followers","following_url":"https://api.github.com/users/raisedadead/following{/other_user}","gists_url":"https://api.github.com/users/raisedadead/gists{/gist_id}","starred_url":"https://api.github.com/users/raisedadead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raisedadead/subscriptions","organizations_url":"https://api.github.com/users/raisedadead/orgs","repos_url":"https://api.github.com/users/raisedadead/repos","events_url":"https://api.github.com/users/raisedadead/events{/privacy}","received_events_url":"https://api.github.com/users/raisedadead/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T09:31:14Z","updated_at":"2016-12-01T09:31:14Z","body":"Yup, that could be an approach. Updated the OP and the title. Tagging as help wanted."}}
{"actor":{"display_login":"raisedadead"}}