{"action":"created","comment":{"url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/comments/180740094","pull_request_review_id":111209722,"id":180740094,"diff_hunk":"@@ -0,0 +1,12 @@\n+// 4. Реализовать функцию которая возвращает массив с числами фибоначчи,  количество которых зависит от\r\n+// переданного значения при вызове функции.\r\n+function fibi(n) {\r\n+    var sum = 0,i,str,arr=[];\r\n+    for (i-0; i<n; i++){\r\n+        if( arr.length > 1)  sum += arr[ arr.length-2];\r\n+        if( arr.length == 1) sum = 1;\r\n+        if( arr.length == 0) sum = 0;\r\n+arr.push( sum);\r\n+    str=arr.join(\",\");\r","path":"fib.js","position":10,"original_position":10,"commit_id":"709886251827abc83848a872bc4bedc58c7755d1","original_commit_id":"709886251827abc83848a872bc4bedc58c7755d1","user":{"login":"kvor88","id":28801957,"avatar_url":"https://avatars0.githubusercontent.com/u/28801957?v=4","gravatar_id":"","url":"https://api.github.com/users/kvor88","html_url":"https://github.com/kvor88","followers_url":"https://api.github.com/users/kvor88/followers","following_url":"https://api.github.com/users/kvor88/following{/other_user}","gists_url":"https://api.github.com/users/kvor88/gists{/gist_id}","starred_url":"https://api.github.com/users/kvor88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvor88/subscriptions","organizations_url":"https://api.github.com/users/kvor88/orgs","repos_url":"https://api.github.com/users/kvor88/repos","events_url":"https://api.github.com/users/kvor88/events{/privacy}","received_events_url":"https://api.github.com/users/kvor88/received_events","type":"User","site_admin":false},"body":"нужно возвращать массив с числами фибоначчи, оператор **return**","created_at":"2018-04-11T12:44:36Z","updated_at":"2018-04-11T12:48:07Z","html_url":"https://github.com/andrey-shostik/JS-courses/pull/26#discussion_r180740094","pull_request_url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/comments/180740094"},"html":{"href":"https://github.com/andrey-shostik/JS-courses/pull/26#discussion_r180740094"},"pull_request":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26","id":180120135,"html_url":"https://github.com/andrey-shostik/JS-courses/pull/26","diff_url":"https://github.com/andrey-shostik/JS-courses/pull/26.diff","patch_url":"https://github.com/andrey-shostik/JS-courses/pull/26.patch","issue_url":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/26","number":26,"state":"open","locked":false,"title":"vlad h. lesson 1","user":{"login":"valkyriy","id":36421109,"avatar_url":"https://avatars0.githubusercontent.com/u/36421109?v=4","gravatar_id":"","url":"https://api.github.com/users/valkyriy","html_url":"https://github.com/valkyriy","followers_url":"https://api.github.com/users/valkyriy/followers","following_url":"https://api.github.com/users/valkyriy/following{/other_user}","gists_url":"https://api.github.com/users/valkyriy/gists{/gist_id}","starred_url":"https://api.github.com/users/valkyriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valkyriy/subscriptions","organizations_url":"https://api.github.com/users/valkyriy/orgs","repos_url":"https://api.github.com/users/valkyriy/repos","events_url":"https://api.github.com/users/valkyriy/events{/privacy}","received_events_url":"https://api.github.com/users/valkyriy/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-07T19:08:09Z","updated_at":"2018-04-11T12:48:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7167bd6509a7bfec22b475b635d5d2db99506a66","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26/commits","review_comments_url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26/comments","review_comment_url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/26/comments","statuses_url":"https://api.github.com/repos/andrey-shostik/JS-courses/statuses/709886251827abc83848a872bc4bedc58c7755d1","head":{"label":"valkyriy:lesson-1","ref":"lesson-1","sha":"709886251827abc83848a872bc4bedc58c7755d1","user":{"login":"valkyriy","id":36421109,"avatar_url":"https://avatars0.githubusercontent.com/u/36421109?v=4","gravatar_id":"","url":"https://api.github.com/users/valkyriy","html_url":"https://github.com/valkyriy","followers_url":"https://api.github.com/users/valkyriy/followers","following_url":"https://api.github.com/users/valkyriy/following{/other_user}","gists_url":"https://api.github.com/users/valkyriy/gists{/gist_id}","starred_url":"https://api.github.com/users/valkyriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valkyriy/subscriptions","organizations_url":"https://api.github.com/users/valkyriy/orgs","repos_url":"https://api.github.com/users/valkyriy/repos","events_url":"https://api.github.com/users/valkyriy/events{/privacy}","received_events_url":"https://api.github.com/users/valkyriy/received_events","type":"User","site_admin":false},"repo":{"id":128103931,"name":"JS-courses","full_name":"valkyriy/JS-courses","owner":{"login":"valkyriy","id":36421109,"avatar_url":"https://avatars0.githubusercontent.com/u/36421109?v=4","gravatar_id":"","url":"https://api.github.com/users/valkyriy","html_url":"https://github.com/valkyriy","followers_url":"https://api.github.com/users/valkyriy/followers","following_url":"https://api.github.com/users/valkyriy/following{/other_user}","gists_url":"https://api.github.com/users/valkyriy/gists{/gist_id}","starred_url":"https://api.github.com/users/valkyriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valkyriy/subscriptions","organizations_url":"https://api.github.com/users/valkyriy/orgs","repos_url":"https://api.github.com/users/valkyriy/repos","events_url":"https://api.github.com/users/valkyriy/events{/privacy}","received_events_url":"https://api.github.com/users/valkyriy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valkyriy/JS-courses","description":null,"fork":true,"url":"https://api.github.com/repos/valkyriy/JS-courses","forks_url":"https://api.github.com/repos/valkyriy/JS-courses/forks","keys_url":"https://api.github.com/repos/valkyriy/JS-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valkyriy/JS-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valkyriy/JS-courses/teams","hooks_url":"https://api.github.com/repos/valkyriy/JS-courses/hooks","issue_events_url":"https://api.github.com/repos/valkyriy/JS-courses/issues/events{/number}","events_url":"https://api.github.com/repos/valkyriy/JS-courses/events","assignees_url":"https://api.github.com/repos/valkyriy/JS-courses/assignees{/user}","branches_url":"https://api.github.com/repos/valkyriy/JS-courses/branches{/branch}","tags_url":"https://api.github.com/repos/valkyriy/JS-courses/tags","blobs_url":"https://api.github.com/repos/valkyriy/JS-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valkyriy/JS-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valkyriy/JS-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/valkyriy/JS-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valkyriy/JS-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/valkyriy/JS-courses/languages","stargazers_url":"https://api.github.com/repos/valkyriy/JS-courses/stargazers","contributors_url":"https://api.github.com/repos/valkyriy/JS-courses/contributors","subscribers_url":"https://api.github.com/repos/valkyriy/JS-courses/subscribers","subscription_url":"https://api.github.com/repos/valkyriy/JS-courses/subscription","commits_url":"https://api.github.com/repos/valkyriy/JS-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/valkyriy/JS-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/valkyriy/JS-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/valkyriy/JS-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/valkyriy/JS-courses/contents/{+path}","compare_url":"https://api.github.com/repos/valkyriy/JS-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valkyriy/JS-courses/merges","archive_url":"https://api.github.com/repos/valkyriy/JS-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valkyriy/JS-courses/downloads","issues_url":"https://api.github.com/repos/valkyriy/JS-courses/issues{/number}","pulls_url":"https://api.github.com/repos/valkyriy/JS-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/valkyriy/JS-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/valkyriy/JS-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valkyriy/JS-courses/labels{/name}","releases_url":"https://api.github.com/repos/valkyriy/JS-courses/releases{/id}","deployments_url":"https://api.github.com/repos/valkyriy/JS-courses/deployments","created_at":"2018-04-04T18:27:58Z","updated_at":"2018-04-04T18:28:00Z","pushed_at":"2018-04-07T20:38:44Z","git_url":"git://github.com/valkyriy/JS-courses.git","ssh_url":"git@github.com:valkyriy/JS-courses.git","clone_url":"https://github.com/valkyriy/JS-courses.git","svn_url":"https://github.com/valkyriy/JS-courses","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"andrey-shostik:lesson-1","ref":"lesson-1","sha":"af5f6fd09ee0f9a1bb13704bb518629b1677781f","user":{"login":"andrey-shostik","id":13626849,"avatar_url":"https://avatars0.githubusercontent.com/u/13626849?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-shostik","html_url":"https://github.com/andrey-shostik","followers_url":"https://api.github.com/users/andrey-shostik/followers","following_url":"https://api.github.com/users/andrey-shostik/following{/other_user}","gists_url":"https://api.github.com/users/andrey-shostik/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-shostik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-shostik/subscriptions","organizations_url":"https://api.github.com/users/andrey-shostik/orgs","repos_url":"https://api.github.com/users/andrey-shostik/repos","events_url":"https://api.github.com/users/andrey-shostik/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-shostik/received_events","type":"User","site_admin":false},"repo":{"id":127763608,"name":"JS-courses","full_name":"andrey-shostik/JS-courses","owner":{"login":"andrey-shostik","id":13626849,"avatar_url":"https://avatars0.githubusercontent.com/u/13626849?v=4","gravatar_id":"","url":"https://api.github.com/users/andrey-shostik","html_url":"https://github.com/andrey-shostik","followers_url":"https://api.github.com/users/andrey-shostik/followers","following_url":"https://api.github.com/users/andrey-shostik/following{/other_user}","gists_url":"https://api.github.com/users/andrey-shostik/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-shostik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-shostik/subscriptions","organizations_url":"https://api.github.com/users/andrey-shostik/orgs","repos_url":"https://api.github.com/users/andrey-shostik/repos","events_url":"https://api.github.com/users/andrey-shostik/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-shostik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrey-shostik/JS-courses","description":null,"fork":false,"url":"https://api.github.com/repos/andrey-shostik/JS-courses","forks_url":"https://api.github.com/repos/andrey-shostik/JS-courses/forks","keys_url":"https://api.github.com/repos/andrey-shostik/JS-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrey-shostik/JS-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrey-shostik/JS-courses/teams","hooks_url":"https://api.github.com/repos/andrey-shostik/JS-courses/hooks","issue_events_url":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/events{/number}","events_url":"https://api.github.com/repos/andrey-shostik/JS-courses/events","assignees_url":"https://api.github.com/repos/andrey-shostik/JS-courses/assignees{/user}","branches_url":"https://api.github.com/repos/andrey-shostik/JS-courses/branches{/branch}","tags_url":"https://api.github.com/repos/andrey-shostik/JS-courses/tags","blobs_url":"https://api.github.com/repos/andrey-shostik/JS-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrey-shostik/JS-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrey-shostik/JS-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrey-shostik/JS-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrey-shostik/JS-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/andrey-shostik/JS-courses/languages","stargazers_url":"https://api.github.com/repos/andrey-shostik/JS-courses/stargazers","contributors_url":"https://api.github.com/repos/andrey-shostik/JS-courses/contributors","subscribers_url":"https://api.github.com/repos/andrey-shostik/JS-courses/subscribers","subscription_url":"https://api.github.com/repos/andrey-shostik/JS-courses/subscription","commits_url":"https://api.github.com/repos/andrey-shostik/JS-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrey-shostik/JS-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrey-shostik/JS-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrey-shostik/JS-courses/contents/{+path}","compare_url":"https://api.github.com/repos/andrey-shostik/JS-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrey-shostik/JS-courses/merges","archive_url":"https://api.github.com/repos/andrey-shostik/JS-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrey-shostik/JS-courses/downloads","issues_url":"https://api.github.com/repos/andrey-shostik/JS-courses/issues{/number}","pulls_url":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/andrey-shostik/JS-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/andrey-shostik/JS-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrey-shostik/JS-courses/labels{/name}","releases_url":"https://api.github.com/repos/andrey-shostik/JS-courses/releases{/id}","deployments_url":"https://api.github.com/repos/andrey-shostik/JS-courses/deployments","created_at":"2018-04-02T13:58:41Z","updated_at":"2018-04-06T12:59:21Z","pushed_at":"2018-04-11T09:25:57Z","git_url":"git://github.com/andrey-shostik/JS-courses.git","ssh_url":"git@github.com:andrey-shostik/JS-courses.git","clone_url":"https://github.com/andrey-shostik/JS-courses.git","svn_url":"https://github.com/andrey-shostik/JS-courses","homepage":null,"size":3,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":23,"license":null,"forks":28,"open_issues":23,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26"},"html":{"href":"https://github.com/andrey-shostik/JS-courses/pull/26"},"issue":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/26"},"comments":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/andrey-shostik/JS-courses/statuses/709886251827abc83848a872bc4bedc58c7755d1"}},"author_association":"NONE"}}
{"actor":{"display_login":"kvor88"}}