{"action":"created","comment":{"url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/comments/189858625","pull_request_review_id":122116104,"id":189858625,"diff_hunk":"@@ -1,6 +1,6 @@\n export const addBorder = (picture) => {\n-    let outPut = [];\n-    let firstEl = picture[0].length;\n+    const outPut = [];","path":"javascript/codefight/addBorder.js","position":4,"original_position":4,"commit_id":"fbb2b8ed21d8d743697705ab7f0536c3695281dd","original_commit_id":"fbb2b8ed21d8d743697705ab7f0536c3695281dd","user":{"login":"deniskuznets","id":38656899,"avatar_url":"https://avatars0.githubusercontent.com/u/38656899?v=4","gravatar_id":"","url":"https://api.github.com/users/deniskuznets","html_url":"https://github.com/deniskuznets","followers_url":"https://api.github.com/users/deniskuznets/followers","following_url":"https://api.github.com/users/deniskuznets/following{/other_user}","gists_url":"https://api.github.com/users/deniskuznets/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskuznets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskuznets/subscriptions","organizations_url":"https://api.github.com/users/deniskuznets/orgs","repos_url":"https://api.github.com/users/deniskuznets/repos","events_url":"https://api.github.com/users/deniskuznets/events{/privacy}","received_events_url":"https://api.github.com/users/deniskuznets/received_events","type":"User","site_admin":false},"body":"In JS you can declare array with const and push items in it. It will only throw an error if you will try to re-assign variable.","created_at":"2018-05-22T10:56:42Z","updated_at":"2018-05-22T10:56:42Z","html_url":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2#discussion_r189858625","pull_request_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/comments/189858625"},"html":{"href":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2#discussion_r189858625"},"pull_request":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2"}},"in_reply_to_id":189858204},"pull_request":{"url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2","id":189591009,"html_url":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2","diff_url":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2.diff","patch_url":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2.patch","issue_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/2","number":2,"state":"open","locked":false,"title":"Made small style changes.","user":{"login":"deniskuznets","id":38656899,"avatar_url":"https://avatars0.githubusercontent.com/u/38656899?v=4","gravatar_id":"","url":"https://api.github.com/users/deniskuznets","html_url":"https://github.com/deniskuznets","followers_url":"https://api.github.com/users/deniskuznets/followers","following_url":"https://api.github.com/users/deniskuznets/following{/other_user}","gists_url":"https://api.github.com/users/deniskuznets/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskuznets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskuznets/subscriptions","organizations_url":"https://api.github.com/users/deniskuznets/orgs","repos_url":"https://api.github.com/users/deniskuznets/repos","events_url":"https://api.github.com/users/deniskuznets/events{/privacy}","received_events_url":"https://api.github.com/users/deniskuznets/received_events","type":"User","site_admin":false},"body":"I have made small style changes. Lets discuss if you agree or not. This is not very good to declare variables with `let` if they will not change. Also I haven't look through all the files but this fixes are related to all of them I think. And one more thing, if I will have more free time I would like to look at this algorithms more from the logic perspective. You did a great job! 👍 ","created_at":"2018-05-22T08:58:32Z","updated_at":"2018-05-22T10:56:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"307ab350f6c32a97cdfd1ff062670ac63328a3d9","assignee":{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2/commits","review_comments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2/comments","review_comment_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/2/comments","statuses_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/statuses/fbb2b8ed21d8d743697705ab7f0536c3695281dd","head":{"label":"AlexandrPristupa:fixes/style-changes","ref":"fixes/style-changes","sha":"fbb2b8ed21d8d743697705ab7f0536c3695281dd","user":{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false},"repo":{"id":126481491,"name":"Today-I-Learned","full_name":"AlexandrPristupa/Today-I-Learned","owner":{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexandrPristupa/Today-I-Learned","description":" for self-education","fork":false,"url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned","forks_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/forks","keys_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/teams","hooks_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/hooks","issue_events_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/events{/number}","events_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/events","assignees_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/assignees{/user}","branches_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/branches{/branch}","tags_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/tags","blobs_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/languages","stargazers_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/stargazers","contributors_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/contributors","subscribers_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/subscribers","subscription_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/subscription","commits_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/contents/{+path}","compare_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/merges","archive_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/downloads","issues_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues{/number}","pulls_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/labels{/name}","releases_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/releases{/id}","deployments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/deployments","created_at":"2018-03-23T12:21:56Z","updated_at":"2018-05-22T08:08:40Z","pushed_at":"2018-05-22T08:58:33Z","git_url":"git://github.com/AlexandrPristupa/Today-I-Learned.git","ssh_url":"git@github.com:AlexandrPristupa/Today-I-Learned.git","clone_url":"https://github.com/AlexandrPristupa/Today-I-Learned.git","svn_url":"https://github.com/AlexandrPristupa/Today-I-Learned","homepage":"","size":9180,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"AlexandrPristupa:master","ref":"master","sha":"141ccc60b86a1545f8c015fb1fd8b3c336ad5190","user":{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false},"repo":{"id":126481491,"name":"Today-I-Learned","full_name":"AlexandrPristupa/Today-I-Learned","owner":{"login":"AlexandrPristupa","id":16851973,"avatar_url":"https://avatars2.githubusercontent.com/u/16851973?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandrPristupa","html_url":"https://github.com/AlexandrPristupa","followers_url":"https://api.github.com/users/AlexandrPristupa/followers","following_url":"https://api.github.com/users/AlexandrPristupa/following{/other_user}","gists_url":"https://api.github.com/users/AlexandrPristupa/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandrPristupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandrPristupa/subscriptions","organizations_url":"https://api.github.com/users/AlexandrPristupa/orgs","repos_url":"https://api.github.com/users/AlexandrPristupa/repos","events_url":"https://api.github.com/users/AlexandrPristupa/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandrPristupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexandrPristupa/Today-I-Learned","description":" for self-education","fork":false,"url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned","forks_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/forks","keys_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/teams","hooks_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/hooks","issue_events_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/events{/number}","events_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/events","assignees_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/assignees{/user}","branches_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/branches{/branch}","tags_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/tags","blobs_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/languages","stargazers_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/stargazers","contributors_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/contributors","subscribers_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/subscribers","subscription_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/subscription","commits_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/contents/{+path}","compare_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/merges","archive_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/downloads","issues_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues{/number}","pulls_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/labels{/name}","releases_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/releases{/id}","deployments_url":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/deployments","created_at":"2018-03-23T12:21:56Z","updated_at":"2018-05-22T08:08:40Z","pushed_at":"2018-05-22T08:58:33Z","git_url":"git://github.com/AlexandrPristupa/Today-I-Learned.git","ssh_url":"git@github.com:AlexandrPristupa/Today-I-Learned.git","clone_url":"https://github.com/AlexandrPristupa/Today-I-Learned.git","svn_url":"https://github.com/AlexandrPristupa/Today-I-Learned","homepage":"","size":9180,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2"},"html":{"href":"https://github.com/AlexandrPristupa/Today-I-Learned/pull/2"},"issue":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/2"},"comments":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/AlexandrPristupa/Today-I-Learned/statuses/fbb2b8ed21d8d743697705ab7f0536c3695281dd"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"deniskuznets"}}