{"action":"created","comment":{"url":"https://api.github.com/repos/SerPstrong/js-1/pulls/comments/259393313","pull_request_review_id":206882868,"id":259393313,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1OTM5MzMxMw==","diff_hunk":"@@ -0,0 +1,48 @@\n+/*С помощью цикла while вывести все простые числа в промежутке от 0 до 100.*/\n+\n+let i = 2;\n+\n+while (i < 100) {\n+    if (isPrime(i)) console.log(i);\n+    i++;\n+}\n+\n+function isPrime(num) {\n+    if (num < 2) return false;\n+    for (let i = 2; i < num; i++) {\n+        if (num % i === 0)\n+            return false;\n+    }\n+    return true;\n+}\n+\n+/*С этого урока начинаем работать с функционалом интернет-магазина. Предположим, есть сущность корзины.\n+Нужно реализовать функционал подсчета стоимости корзины в зависимости от находящихся в ней товаров.\n+Товары в корзине хранятся в массиве. Задачи:\n+*/\n+var arr = [];\n+\n+arr.push('zero');\n+arr.push('one', 2);\n+arr.push('z');\n+arr.push('rrt2', 2, \"rtt\");\n+\n+console.log(arr);\n+\n+for (let i = 0; i < arr.length; i++) {","path":"js/lesson3.js","position":32,"original_position":32,"commit_id":"eafe90fcb59f8ef0349ae878e6d287f04870f198","original_commit_id":"eafe90fcb59f8ef0349ae878e6d287f04870f198","user":{"login":"ubcent","id":4948124,"node_id":"MDQ6VXNlcjQ5NDgxMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4948124?v=4","gravatar_id":"","url":"https://api.github.com/users/ubcent","html_url":"https://github.com/ubcent","followers_url":"https://api.github.com/users/ubcent/followers","following_url":"https://api.github.com/users/ubcent/following{/other_user}","gists_url":"https://api.github.com/users/ubcent/gists{/gist_id}","starred_url":"https://api.github.com/users/ubcent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubcent/subscriptions","organizations_url":"https://api.github.com/users/ubcent/orgs","repos_url":"https://api.github.com/users/ubcent/repos","events_url":"https://api.github.com/users/ubcent/events{/privacy}","received_events_url":"https://api.github.com/users/ubcent/received_events","type":"User","site_admin":false},"body":"Не похоже, что этот цикл считает сумму товаров в корзине","created_at":"2019-02-22T15:39:35Z","updated_at":"2019-02-22T15:39:39Z","html_url":"https://github.com/SerPstrong/js-1/pull/3#discussion_r259393313","pull_request_url":"https://api.github.com/repos/SerPstrong/js-1/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/comments/259393313"},"html":{"href":"https://github.com/SerPstrong/js-1/pull/3#discussion_r259393313"},"pull_request":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/SerPstrong/js-1/pulls/3","id":255305070,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU1MzA1MDcw","html_url":"https://github.com/SerPstrong/js-1/pull/3","diff_url":"https://github.com/SerPstrong/js-1/pull/3.diff","patch_url":"https://github.com/SerPstrong/js-1/pull/3.patch","issue_url":"https://api.github.com/repos/SerPstrong/js-1/issues/3","number":3,"state":"open","locked":false,"title":"lesson3","user":{"login":"SerPstrong","id":37042872,"node_id":"MDQ6VXNlcjM3MDQyODcy","avatar_url":"https://avatars1.githubusercontent.com/u/37042872?v=4","gravatar_id":"","url":"https://api.github.com/users/SerPstrong","html_url":"https://github.com/SerPstrong","followers_url":"https://api.github.com/users/SerPstrong/followers","following_url":"https://api.github.com/users/SerPstrong/following{/other_user}","gists_url":"https://api.github.com/users/SerPstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/SerPstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerPstrong/subscriptions","organizations_url":"https://api.github.com/users/SerPstrong/orgs","repos_url":"https://api.github.com/users/SerPstrong/repos","events_url":"https://api.github.com/users/SerPstrong/events{/privacy}","received_events_url":"https://api.github.com/users/SerPstrong/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-02-22T08:05:20Z","updated_at":"2019-02-22T15:39:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46f461b66930eadeba6129cb28a22443be7fa50f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SerPstrong/js-1/pulls/3/commits","review_comments_url":"https://api.github.com/repos/SerPstrong/js-1/pulls/3/comments","review_comment_url":"https://api.github.com/repos/SerPstrong/js-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SerPstrong/js-1/issues/3/comments","statuses_url":"https://api.github.com/repos/SerPstrong/js-1/statuses/eafe90fcb59f8ef0349ae878e6d287f04870f198","head":{"label":"SerPstrong:lesson-3","ref":"lesson-3","sha":"eafe90fcb59f8ef0349ae878e6d287f04870f198","user":{"login":"SerPstrong","id":37042872,"node_id":"MDQ6VXNlcjM3MDQyODcy","avatar_url":"https://avatars1.githubusercontent.com/u/37042872?v=4","gravatar_id":"","url":"https://api.github.com/users/SerPstrong","html_url":"https://github.com/SerPstrong","followers_url":"https://api.github.com/users/SerPstrong/followers","following_url":"https://api.github.com/users/SerPstrong/following{/other_user}","gists_url":"https://api.github.com/users/SerPstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/SerPstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerPstrong/subscriptions","organizations_url":"https://api.github.com/users/SerPstrong/orgs","repos_url":"https://api.github.com/users/SerPstrong/repos","events_url":"https://api.github.com/users/SerPstrong/events{/privacy}","received_events_url":"https://api.github.com/users/SerPstrong/received_events","type":"User","site_admin":false},"repo":{"id":170832622,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA4MzI2MjI=","name":"js-1","full_name":"SerPstrong/js-1","private":false,"owner":{"login":"SerPstrong","id":37042872,"node_id":"MDQ6VXNlcjM3MDQyODcy","avatar_url":"https://avatars1.githubusercontent.com/u/37042872?v=4","gravatar_id":"","url":"https://api.github.com/users/SerPstrong","html_url":"https://github.com/SerPstrong","followers_url":"https://api.github.com/users/SerPstrong/followers","following_url":"https://api.github.com/users/SerPstrong/following{/other_user}","gists_url":"https://api.github.com/users/SerPstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/SerPstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerPstrong/subscriptions","organizations_url":"https://api.github.com/users/SerPstrong/orgs","repos_url":"https://api.github.com/users/SerPstrong/repos","events_url":"https://api.github.com/users/SerPstrong/events{/privacy}","received_events_url":"https://api.github.com/users/SerPstrong/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SerPstrong/js-1","description":null,"fork":false,"url":"https://api.github.com/repos/SerPstrong/js-1","forks_url":"https://api.github.com/repos/SerPstrong/js-1/forks","keys_url":"https://api.github.com/repos/SerPstrong/js-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SerPstrong/js-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SerPstrong/js-1/teams","hooks_url":"https://api.github.com/repos/SerPstrong/js-1/hooks","issue_events_url":"https://api.github.com/repos/SerPstrong/js-1/issues/events{/number}","events_url":"https://api.github.com/repos/SerPstrong/js-1/events","assignees_url":"https://api.github.com/repos/SerPstrong/js-1/assignees{/user}","branches_url":"https://api.github.com/repos/SerPstrong/js-1/branches{/branch}","tags_url":"https://api.github.com/repos/SerPstrong/js-1/tags","blobs_url":"https://api.github.com/repos/SerPstrong/js-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SerPstrong/js-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SerPstrong/js-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/SerPstrong/js-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SerPstrong/js-1/statuses/{sha}","languages_url":"https://api.github.com/repos/SerPstrong/js-1/languages","stargazers_url":"https://api.github.com/repos/SerPstrong/js-1/stargazers","contributors_url":"https://api.github.com/repos/SerPstrong/js-1/contributors","subscribers_url":"https://api.github.com/repos/SerPstrong/js-1/subscribers","subscription_url":"https://api.github.com/repos/SerPstrong/js-1/subscription","commits_url":"https://api.github.com/repos/SerPstrong/js-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/SerPstrong/js-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/SerPstrong/js-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/SerPstrong/js-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/SerPstrong/js-1/contents/{+path}","compare_url":"https://api.github.com/repos/SerPstrong/js-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SerPstrong/js-1/merges","archive_url":"https://api.github.com/repos/SerPstrong/js-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SerPstrong/js-1/downloads","issues_url":"https://api.github.com/repos/SerPstrong/js-1/issues{/number}","pulls_url":"https://api.github.com/repos/SerPstrong/js-1/pulls{/number}","milestones_url":"https://api.github.com/repos/SerPstrong/js-1/milestones{/number}","notifications_url":"https://api.github.com/repos/SerPstrong/js-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SerPstrong/js-1/labels{/name}","releases_url":"https://api.github.com/repos/SerPstrong/js-1/releases{/id}","deployments_url":"https://api.github.com/repos/SerPstrong/js-1/deployments","created_at":"2019-02-15T08:52:38Z","updated_at":"2019-02-22T07:50:26Z","pushed_at":"2019-02-22T08:05:20Z","git_url":"git://github.com/SerPstrong/js-1.git","ssh_url":"git@github.com:SerPstrong/js-1.git","clone_url":"https://github.com/SerPstrong/js-1.git","svn_url":"https://github.com/SerPstrong/js-1","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SerPstrong:master","ref":"master","sha":"8cf7a0d2072cf2cf145ee3a7f8547ae94d69f90f","user":{"login":"SerPstrong","id":37042872,"node_id":"MDQ6VXNlcjM3MDQyODcy","avatar_url":"https://avatars1.githubusercontent.com/u/37042872?v=4","gravatar_id":"","url":"https://api.github.com/users/SerPstrong","html_url":"https://github.com/SerPstrong","followers_url":"https://api.github.com/users/SerPstrong/followers","following_url":"https://api.github.com/users/SerPstrong/following{/other_user}","gists_url":"https://api.github.com/users/SerPstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/SerPstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerPstrong/subscriptions","organizations_url":"https://api.github.com/users/SerPstrong/orgs","repos_url":"https://api.github.com/users/SerPstrong/repos","events_url":"https://api.github.com/users/SerPstrong/events{/privacy}","received_events_url":"https://api.github.com/users/SerPstrong/received_events","type":"User","site_admin":false},"repo":{"id":170832622,"node_id":"MDEwOlJlcG9zaXRvcnkxNzA4MzI2MjI=","name":"js-1","full_name":"SerPstrong/js-1","private":false,"owner":{"login":"SerPstrong","id":37042872,"node_id":"MDQ6VXNlcjM3MDQyODcy","avatar_url":"https://avatars1.githubusercontent.com/u/37042872?v=4","gravatar_id":"","url":"https://api.github.com/users/SerPstrong","html_url":"https://github.com/SerPstrong","followers_url":"https://api.github.com/users/SerPstrong/followers","following_url":"https://api.github.com/users/SerPstrong/following{/other_user}","gists_url":"https://api.github.com/users/SerPstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/SerPstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SerPstrong/subscriptions","organizations_url":"https://api.github.com/users/SerPstrong/orgs","repos_url":"https://api.github.com/users/SerPstrong/repos","events_url":"https://api.github.com/users/SerPstrong/events{/privacy}","received_events_url":"https://api.github.com/users/SerPstrong/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SerPstrong/js-1","description":null,"fork":false,"url":"https://api.github.com/repos/SerPstrong/js-1","forks_url":"https://api.github.com/repos/SerPstrong/js-1/forks","keys_url":"https://api.github.com/repos/SerPstrong/js-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SerPstrong/js-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SerPstrong/js-1/teams","hooks_url":"https://api.github.com/repos/SerPstrong/js-1/hooks","issue_events_url":"https://api.github.com/repos/SerPstrong/js-1/issues/events{/number}","events_url":"https://api.github.com/repos/SerPstrong/js-1/events","assignees_url":"https://api.github.com/repos/SerPstrong/js-1/assignees{/user}","branches_url":"https://api.github.com/repos/SerPstrong/js-1/branches{/branch}","tags_url":"https://api.github.com/repos/SerPstrong/js-1/tags","blobs_url":"https://api.github.com/repos/SerPstrong/js-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SerPstrong/js-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SerPstrong/js-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/SerPstrong/js-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SerPstrong/js-1/statuses/{sha}","languages_url":"https://api.github.com/repos/SerPstrong/js-1/languages","stargazers_url":"https://api.github.com/repos/SerPstrong/js-1/stargazers","contributors_url":"https://api.github.com/repos/SerPstrong/js-1/contributors","subscribers_url":"https://api.github.com/repos/SerPstrong/js-1/subscribers","subscription_url":"https://api.github.com/repos/SerPstrong/js-1/subscription","commits_url":"https://api.github.com/repos/SerPstrong/js-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/SerPstrong/js-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/SerPstrong/js-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/SerPstrong/js-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/SerPstrong/js-1/contents/{+path}","compare_url":"https://api.github.com/repos/SerPstrong/js-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SerPstrong/js-1/merges","archive_url":"https://api.github.com/repos/SerPstrong/js-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SerPstrong/js-1/downloads","issues_url":"https://api.github.com/repos/SerPstrong/js-1/issues{/number}","pulls_url":"https://api.github.com/repos/SerPstrong/js-1/pulls{/number}","milestones_url":"https://api.github.com/repos/SerPstrong/js-1/milestones{/number}","notifications_url":"https://api.github.com/repos/SerPstrong/js-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SerPstrong/js-1/labels{/name}","releases_url":"https://api.github.com/repos/SerPstrong/js-1/releases{/id}","deployments_url":"https://api.github.com/repos/SerPstrong/js-1/deployments","created_at":"2019-02-15T08:52:38Z","updated_at":"2019-02-22T07:50:26Z","pushed_at":"2019-02-22T08:05:20Z","git_url":"git://github.com/SerPstrong/js-1.git","ssh_url":"git@github.com:SerPstrong/js-1.git","clone_url":"https://github.com/SerPstrong/js-1.git","svn_url":"https://github.com/SerPstrong/js-1","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/3"},"html":{"href":"https://github.com/SerPstrong/js-1/pull/3"},"issue":{"href":"https://api.github.com/repos/SerPstrong/js-1/issues/3"},"comments":{"href":"https://api.github.com/repos/SerPstrong/js-1/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SerPstrong/js-1/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/SerPstrong/js-1/statuses/eafe90fcb59f8ef0349ae878e6d287f04870f198"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ubcent"}}