{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6830","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6830/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6830/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6830/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6830","id":132166171,"number":6830,"title":"Global variable error. ","user":{"login":"rkingkeo","id":10384584,"avatar_url":"https://avatars.githubusercontent.com/u/10384584?v=3","gravatar_id":"","url":"https://api.github.com/users/rkingkeo","html_url":"https://github.com/rkingkeo","followers_url":"https://api.github.com/users/rkingkeo/followers","following_url":"https://api.github.com/users/rkingkeo/following{/other_user}","gists_url":"https://api.github.com/users/rkingkeo/gists{/gist_id}","starred_url":"https://api.github.com/users/rkingkeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkingkeo/subscriptions","organizations_url":"https://api.github.com/users/rkingkeo/orgs","repos_url":"https://api.github.com/users/rkingkeo/repos","events_url":"https://api.github.com/users/rkingkeo/events{/privacy}","received_events_url":"https://api.github.com/users/rkingkeo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-08T15:02:49Z","updated_at":"2016-02-08T17:29:04Z","closed_at":null,"body":"Challenge [Global vs Local Scope in Functions](http://www.freecodecamp.com/challenges/global-vs-local-scope-in-functions#?solution=%2F%2F%20Setup%0Avar%20outerWear%20%3D%20%22T-Shirt%22%3B%0A%0Afunction%20myFunction()%20%7B%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line%0A%20%20%0A%20%20outerWear%3D%22sweater%22%3B%0A%20%20%0A%20%20%2F%2F%20Only%20change%20code%20above%20this%20line%0A%20%20return%20outerWear%3B%0A%7D%0A%0AmyFunction()%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nI did not change the global variable but the program  thinks I did. \r\n\r\nMy code:\r\n```javascript\r\n// Setup\r\nvar outerWear = \"T-Shirt\";\r\n\r\nfunction myFunction() {\r\n  // Only change code below this line\r\n  \r\n  outerWear=\"sweater\";\r\n  \r\n  // Only change code above this line\r\n  return outerWear;\r\n}\r\n\r\nmyFunction();\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/181487682","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6830#issuecomment-181487682","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6830","id":181487682,"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-02-08T17:29:04Z","updated_at":"2016-02-08T17:29:04Z","body":"Sorry, my bad.\r\n\r\n@rkingkeo Your code actually is incorrect:\r\n```javascript\r\n// Setup\r\nvar outerWear = \"T-Shirt\";\r\n\r\nfunction myFunction() {\r\n  // Only change code below this line\r\n\r\n  outerWear=\"sweater\";  // <<<<--------------------- this should be: var outerWear=\"sweater\";\r\n\r\n  // Only change code above this line\r\n  return outerWear;\r\n}\r\n\r\nmyFunction();\r\n```\r\n\r\nPlease have a look at the example code, in the instruction.\r\nYou can further queries at [Help Chat](https://gitter.im/FreeCodeCamp/Help).\r\n"}}