{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/19","repository_url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn","labels_url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/19/comments","events_url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/19/events","html_url":"https://github.com/FreeCodeCampChina/freecodecamp.cn/issues/19","id":183340354,"number":19,"title":"for循环中使用num变量会导致浏览器崩溃","user":{"login":"Craiiiigie","id":21350757,"avatar_url":"https://avatars.githubusercontent.com/u/21350757?v=3","gravatar_id":"","url":"https://api.github.com/users/Craiiiigie","html_url":"https://github.com/Craiiiigie","followers_url":"https://api.github.com/users/Craiiiigie/followers","following_url":"https://api.github.com/users/Craiiiigie/following{/other_user}","gists_url":"https://api.github.com/users/Craiiiigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Craiiiigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Craiiiigie/subscriptions","organizations_url":"https://api.github.com/users/Craiiiigie/orgs","repos_url":"https://api.github.com/users/Craiiiigie/repos","events_url":"https://api.github.com/users/Craiiiigie/events{/privacy}","received_events_url":"https://api.github.com/users/Craiiiigie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-17T07:04:12Z","updated_at":"2016-11-03T07:09:24Z","closed_at":"2016-10-30T05:14:18Z","body":"Challenge [Sum All Odd Fibonacci Numbers](https://www.freecodecamp.cn/challenges/sum-all-odd-fibonacci-numbers#?solution=function%20sumFibs%28num%29%20%7B%0A%20%20return%20num%3B%0A%7D%0A%0AsumFibs%284%29%3B%0A) has an issue.\nUser Agent is: <code>Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36</code>.\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\n\nMy code:\n\n``` javascript\n\nfunction sumFibs(num) {\n  var arr=[];\n  var sum=0;\n  arr[0]=0;\n  arr[1]=1;\n  for(var i=2;i<4;i++){\n    arr[i]=arr[i-2]+arr[i-1];\n  }\n  return arr;\n}\n\nsumFibs(4);\n\n```\n\n在开始研究题目的时候发现，如果把代码中for循环里的i<4替换成i<num（或者任何变量）就会出现浏览器崩溃，测试浏览器是chrome版本 53.0.2785.143 m\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/comments/258075902","html_url":"https://github.com/FreeCodeCampChina/freecodecamp.cn/issues/19#issuecomment-258075902","issue_url":"https://api.github.com/repos/FreeCodeCampChina/freecodecamp.cn/issues/19","id":258075902,"user":{"login":"Craiiiigie","id":21350757,"avatar_url":"https://avatars.githubusercontent.com/u/21350757?v=3","gravatar_id":"","url":"https://api.github.com/users/Craiiiigie","html_url":"https://github.com/Craiiiigie","followers_url":"https://api.github.com/users/Craiiiigie/followers","following_url":"https://api.github.com/users/Craiiiigie/following{/other_user}","gists_url":"https://api.github.com/users/Craiiiigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Craiiiigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Craiiiigie/subscriptions","organizations_url":"https://api.github.com/users/Craiiiigie/orgs","repos_url":"https://api.github.com/users/Craiiiigie/repos","events_url":"https://api.github.com/users/Craiiiigie/events{/privacy}","received_events_url":"https://api.github.com/users/Craiiiigie/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T07:09:24Z","updated_at":"2016-11-03T07:09:24Z","body":"后来我也是更改了代码通过的，当时是想搞清崩溃的原因是不是因为循环次数，感谢各位解答！"}}
{"actor":{"display_login":"Craiiiigie"}}