{"action":"closed","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7411","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7411/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7411/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7411/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7411","id":138666137,"number":7411,"title":"Block level scope","user":{"login":"jklinck","id":5268156,"avatar_url":"https://avatars.githubusercontent.com/u/5268156?v=3","gravatar_id":"","url":"https://api.github.com/users/jklinck","html_url":"https://github.com/jklinck","followers_url":"https://api.github.com/users/jklinck/followers","following_url":"https://api.github.com/users/jklinck/following{/other_user}","gists_url":"https://api.github.com/users/jklinck/gists{/gist_id}","starred_url":"https://api.github.com/users/jklinck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklinck/subscriptions","organizations_url":"https://api.github.com/users/jklinck/orgs","repos_url":"https://api.github.com/users/jklinck/repos","events_url":"https://api.github.com/users/jklinck/events{/privacy}","received_events_url":"https://api.github.com/users/jklinck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/blocked","name":"blocked","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-05T10:05:22Z","updated_at":"2016-05-10T21:03:49Z","closed_at":"2016-05-10T21:03:49Z","body":"Challenge [Iterate with JavaScript For Loops](http://www.freecodecamp.com/challenges/iterate-with-javascript-for-loops) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 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// Example\r\nvar ourArray = [];\r\n\r\nfor (var i = 0; i < 5; i++) {\r\n  ourArray.push(i);\r\n}\r\n\r\n// Setup\r\nvar myArray = [];\r\n\r\n// Only change code below this line.\r\n\r\nfor(var j=1;j<6;j++){\r\n  myArray.push(j);\r\n}\r\n\r\n```\r\nI think it should be mentioned on this section that for loops have block level scope and are not functions and all declared variables are global. Some students may use \"var i\" in their loop which will be an issue because \"var i\" is used in the demonstration loop. Thus causing conflicts. I suggest putting this as a comment in the editor. \r\n\r\n\r\n"}}