{"action":"created","comment":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/90754793","pull_request_review_id":11274823,"id":90754793,"diff_hunk":"@@ -114,51 +114,51 @@ let PersonType2 = (function() {\n }());\n ```\n \n-First, notice that there are two `PersonType2` declarations: a `let` declaration in the outer scope and a `const` declaration inside the IIFE. This is how class methods are forbidden from overwriting the class name while code outside the class is allowed to do so. The constructor function checks `new.target` to ensure that it's being called with `new`; if not, an error is thrown. Next, the `sayName()` method is defined as nonenumerable, and the method checks `new.target` to ensure that it wasn't called with `new`. The final step returns the constructor function.\n+По-перше, зауважте, що тут мі маємо два оголошення `PersonType2`: за допомогою `let` у зовнішній області бачення, та з `const` всередині [IIFE](https://developer.mozilla.org/ru/docs/%D0%A1%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C/IIFE) (негайно виконуваного функціонального виразу). Ось як методи класу отримують заборону на перезапис ім'я класу, в той час, як код поза класом має можливість це роботи. Функція конструктор перевіряє `new.target`, щоб переконатися, що оголошення було виконане з `new`; якщо ні, то буду збуджено помилку. Далі, метод `sayName()` визначений як незчисленний, і метод перевіряє `new.target`, щоб переконатися, що його не було викликано з `new`. Фінальний крок повертає функцію конструктор.\n \n-This example shows that while it's possible to do everything classes do without using the new syntax, the class syntax simplifies all of the functionality significantly.\n+Цей приклад показує, що можливо зробити все, що роблять класи без використання нового синтаксису, та синтаксис класу значно спрощує всю функціональність.\n \n-A> ### Constant Class Names\n+A> ### Сталі імена класів\n A>\n-A> The name of a class is only specified as if using `const` inside of the class itself. That means you can overwrite the class name outside of the class but not inside a class method. For example:\n+A> Ім'я класу визначається тільки як при використанні `const` всередині самого класу. Це означає, що ви можете замінити ім'я класу поза класом, але не всередині методу класу. Наприклад:\n A>\n A> ```js\n A> class Foo {\n A>    constructor() {\n-A>        Foo = \"bar\";    // throws an error when executed\n+A>        Foo = \"bar\";    // викличе помилку при виконанні\n A>    }\n A> }\n A>\n-A>// but this is okay after the class declaration\n+A>// але буде добре після оголошення класу","path":"manuscript/09-Classes.md","position":null,"original_position":152,"commit_id":"3328e325ee7e8bfd623539e29e678cb9bcee6b38","original_commit_id":"3328e325ee7e8bfd623539e29e678cb9bcee6b38","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-12-03T10:29:40Z","updated_at":"2016-12-03T11:04:29Z","html_url":"https://github.com/denysdovhan/understandinges6ua/pull/45#discussion_r90754793","pull_request_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments/90754793"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/45#discussion_r90754793"},"pull_request":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45","id":77090412,"html_url":"https://github.com/denysdovhan/understandinges6ua/pull/45","diff_url":"https://github.com/denysdovhan/understandinges6ua/pull/45.diff","patch_url":"https://github.com/denysdovhan/understandinges6ua/pull/45.patch","issue_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/45","number":45,"state":"open","locked":false,"title":"Translate \"09 Classes\"","user":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"body":"Translation of #10.\n","created_at":"2016-07-12T09:46:52Z","updated_at":"2016-12-03T11:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b49ab2038a3f94bf83d95a3a0053c2e5798960fb","assignee":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"assignees":[{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45/commits","review_comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45/comments","review_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/45/comments","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/3328e325ee7e8bfd623539e29e678cb9bcee6b38","head":{"label":"victorpavlov:09-Classes","ref":"09-Classes","sha":"3328e325ee7e8bfd623539e29e678cb9bcee6b38","user":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"repo":{"id":49984180,"name":"understandinges6ua","full_name":"victorpavlov/understandinges6ua","owner":{"login":"victorpavlov","id":3427831,"avatar_url":"https://avatars.githubusercontent.com/u/3427831?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpavlov","html_url":"https://github.com/victorpavlov","followers_url":"https://api.github.com/users/victorpavlov/followers","following_url":"https://api.github.com/users/victorpavlov/following{/other_user}","gists_url":"https://api.github.com/users/victorpavlov/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpavlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpavlov/subscriptions","organizations_url":"https://api.github.com/users/victorpavlov/orgs","repos_url":"https://api.github.com/users/victorpavlov/repos","events_url":"https://api.github.com/users/victorpavlov/events{/privacy}","received_events_url":"https://api.github.com/users/victorpavlov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorpavlov/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":true,"url":"https://api.github.com/repos/victorpavlov/understandinges6ua","forks_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/forks","keys_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/events","assignees_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/merges","archive_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/victorpavlov/understandinges6ua/deployments","created_at":"2016-01-19T21:25:11Z","updated_at":"2016-01-19T10:19:15Z","pushed_at":"2016-07-28T09:03:56Z","git_url":"git://github.com/victorpavlov/understandinges6ua.git","ssh_url":"git@github.com:victorpavlov/understandinges6ua.git","clone_url":"https://github.com/victorpavlov/understandinges6ua.git","svn_url":"https://github.com/victorpavlov/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":755,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"denysdovhan:master","ref":"master","sha":"77736e19ba20d797ead7d018981610fe4a0ec446","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"repo":{"id":49322520,"name":"understandinges6ua","full_name":"denysdovhan/understandinges6ua","owner":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denysdovhan/understandinges6ua","description":"Ukrainian translation of “Understanding ES6” by @nzakas","fork":false,"url":"https://api.github.com/repos/denysdovhan/understandinges6ua","forks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/forks","keys_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/teams","hooks_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/hooks","issue_events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/events{/number}","events_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/events","assignees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/assignees{/user}","branches_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/branches{/branch}","tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/tags","blobs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/refs{/sha}","trees_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/{sha}","languages_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/languages","stargazers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/stargazers","contributors_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contributors","subscribers_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscribers","subscription_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/subscription","commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/commits{/sha}","git_commits_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/git/commits{/sha}","comments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/comments{/number}","issue_comment_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/comments{/number}","contents_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/contents/{+path}","compare_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/merges","archive_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/downloads","issues_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues{/number}","pulls_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls{/number}","milestones_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/milestones{/number}","notifications_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/labels{/name}","releases_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/releases{/id}","deployments_url":"https://api.github.com/repos/denysdovhan/understandinges6ua/deployments","created_at":"2016-01-09T11:57:24Z","updated_at":"2016-11-26T23:48:54Z","pushed_at":"2016-12-03T10:12:29Z","git_url":"git://github.com/denysdovhan/understandinges6ua.git","ssh_url":"git@github.com:denysdovhan/understandinges6ua.git","clone_url":"https://github.com/denysdovhan/understandinges6ua.git","svn_url":"https://github.com/denysdovhan/understandinges6ua","homepage":"http://understandinges6.denysdovhan.com","size":5988,"stargazers_count":35,"watchers_count":35,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":10,"forks":10,"open_issues":10,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45"},"html":{"href":"https://github.com/denysdovhan/understandinges6ua/pull/45"},"issue":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/45"},"comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/denysdovhan/understandinges6ua/statuses/3328e325ee7e8bfd623539e29e678cb9bcee6b38"}}}}
{"actor":{"display_login":"denysdovhan"}}