{"action":"created","comment":{"url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/comments/222745301","pull_request_review_id":161706774,"id":222745301,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjc0NTMwMQ==","diff_hunk":"@@ -0,0 +1,57 @@\n+(function() {\n+  function Question(question, answers, correct) {\n+    this.question = question;\n+    this.answers = answers;\n+    this.correct = correct;\n+  }\n+\n+  Question.prototype.displayQuestion = function() {\n+    console.log(this.question);\n+\n+    for (var i = 0; i < this.answers.length; i++) {\n+      console.log(i + ': ' + this.answers[i]);\n+    }\n+  };\n+\n+  Question.prototype.checkAnswer = function(ans) {\n+    if (ans === this.correct) {\n+      console.log('Correct answer!');\n+      return 1;\n+    } else {\n+      console.log('Wrong answer. Try again :)')\n+      return 0;\n+    }\n+  };\n+\n+  var q1 = new Question('Is JavaScript the coolest programming language in the world?',\n+    ['Yes', 'No'],\n+    0);\n+\n+  var q2 = new Question('What is the name of this course\\'s teacher?',\n+    ['John', 'Micheal', 'Jonas'],\n+    2);\n+\n+  var q3 = new Question('What does best describe coding?',\n+    ['Boring', 'Hard', 'Fun', 'Tediuos'],\n+    2);\n+\n+  var questions = [q1, q2, q3];\n+\n+  var  total = 0;\n+\n+  (function exam() {","path":"lesson-9/challenge.js","position":42,"original_position":42,"commit_id":"bbc5cae074fac245629cda217a53f3cdafad3fdd","original_commit_id":"bbc5cae074fac245629cda217a53f3cdafad3fdd","user":{"login":"instinct-it-academy","id":29653615,"node_id":"MDQ6VXNlcjI5NjUzNjE1","avatar_url":"https://avatars2.githubusercontent.com/u/29653615?v=4","gravatar_id":"","url":"https://api.github.com/users/instinct-it-academy","html_url":"https://github.com/instinct-it-academy","followers_url":"https://api.github.com/users/instinct-it-academy/followers","following_url":"https://api.github.com/users/instinct-it-academy/following{/other_user}","gists_url":"https://api.github.com/users/instinct-it-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/instinct-it-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instinct-it-academy/subscriptions","organizations_url":"https://api.github.com/users/instinct-it-academy/orgs","repos_url":"https://api.github.com/users/instinct-it-academy/repos","events_url":"https://api.github.com/users/instinct-it-academy/events{/privacy}","received_events_url":"https://api.github.com/users/instinct-it-academy/received_events","type":"User","site_admin":false},"body":"Не нужна подобная функция, просто вызовите ниже exam","created_at":"2018-10-04T16:43:09Z","updated_at":"2018-10-04T16:45:30Z","html_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8#discussion_r222745301","pull_request_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/comments/222745301"},"html":{"href":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8#discussion_r222745301"},"pull_request":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8","id":219278921,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Mjc4OTIx","html_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8","diff_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8.diff","patch_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8.patch","issue_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/8","number":8,"state":"open","locked":false,"title":"Lesson 9","user":{"login":"Sergej-Radkovec","id":39668120,"node_id":"MDQ6VXNlcjM5NjY4MTIw","avatar_url":"https://avatars2.githubusercontent.com/u/39668120?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergej-Radkovec","html_url":"https://github.com/Sergej-Radkovec","followers_url":"https://api.github.com/users/Sergej-Radkovec/followers","following_url":"https://api.github.com/users/Sergej-Radkovec/following{/other_user}","gists_url":"https://api.github.com/users/Sergej-Radkovec/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergej-Radkovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergej-Radkovec/subscriptions","organizations_url":"https://api.github.com/users/Sergej-Radkovec/orgs","repos_url":"https://api.github.com/users/Sergej-Radkovec/repos","events_url":"https://api.github.com/users/Sergej-Radkovec/events{/privacy}","received_events_url":"https://api.github.com/users/Sergej-Radkovec/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-01T07:14:36Z","updated_at":"2018-10-04T16:45:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f38c7adfbec6303ecc0e1108bbb4d645e70572b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/8/comments","statuses_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/statuses/bbc5cae074fac245629cda217a53f3cdafad3fdd","head":{"label":"Sergej-Radkovec:lesson-9","ref":"lesson-9","sha":"bbc5cae074fac245629cda217a53f3cdafad3fdd","user":{"login":"Sergej-Radkovec","id":39668120,"node_id":"MDQ6VXNlcjM5NjY4MTIw","avatar_url":"https://avatars2.githubusercontent.com/u/39668120?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergej-Radkovec","html_url":"https://github.com/Sergej-Radkovec","followers_url":"https://api.github.com/users/Sergej-Radkovec/followers","following_url":"https://api.github.com/users/Sergej-Radkovec/following{/other_user}","gists_url":"https://api.github.com/users/Sergej-Radkovec/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergej-Radkovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergej-Radkovec/subscriptions","organizations_url":"https://api.github.com/users/Sergej-Radkovec/orgs","repos_url":"https://api.github.com/users/Sergej-Radkovec/repos","events_url":"https://api.github.com/users/Sergej-Radkovec/events{/privacy}","received_events_url":"https://api.github.com/users/Sergej-Radkovec/received_events","type":"User","site_admin":false},"repo":{"id":147479544,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0Nzk1NDQ=","name":"radkovecsergej-js-home","full_name":"Sergej-Radkovec/radkovecsergej-js-home","private":false,"owner":{"login":"Sergej-Radkovec","id":39668120,"node_id":"MDQ6VXNlcjM5NjY4MTIw","avatar_url":"https://avatars2.githubusercontent.com/u/39668120?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergej-Radkovec","html_url":"https://github.com/Sergej-Radkovec","followers_url":"https://api.github.com/users/Sergej-Radkovec/followers","following_url":"https://api.github.com/users/Sergej-Radkovec/following{/other_user}","gists_url":"https://api.github.com/users/Sergej-Radkovec/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergej-Radkovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergej-Radkovec/subscriptions","organizations_url":"https://api.github.com/users/Sergej-Radkovec/orgs","repos_url":"https://api.github.com/users/Sergej-Radkovec/repos","events_url":"https://api.github.com/users/Sergej-Radkovec/events{/privacy}","received_events_url":"https://api.github.com/users/Sergej-Radkovec/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home","description":null,"fork":false,"url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home","forks_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/forks","keys_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/teams","hooks_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/hooks","issue_events_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/events{/number}","events_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/events","assignees_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/assignees{/user}","branches_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/branches{/branch}","tags_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/tags","blobs_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/statuses/{sha}","languages_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/languages","stargazers_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/stargazers","contributors_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/contributors","subscribers_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/subscribers","subscription_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/subscription","commits_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/contents/{+path}","compare_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/merges","archive_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/downloads","issues_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues{/number}","pulls_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls{/number}","milestones_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/milestones{/number}","notifications_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/labels{/name}","releases_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/releases{/id}","deployments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/deployments","created_at":"2018-09-05T07:41:36Z","updated_at":"2018-10-04T16:38:03Z","pushed_at":"2018-10-04T16:38:01Z","git_url":"git://github.com/Sergej-Radkovec/radkovecsergej-js-home.git","ssh_url":"git@github.com:Sergej-Radkovec/radkovecsergej-js-home.git","clone_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home.git","svn_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home","homepage":null,"size":88,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Sergej-Radkovec:master","ref":"master","sha":"70d2c067ca3df8632335e8174dcad65e6fef9288","user":{"login":"Sergej-Radkovec","id":39668120,"node_id":"MDQ6VXNlcjM5NjY4MTIw","avatar_url":"https://avatars2.githubusercontent.com/u/39668120?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergej-Radkovec","html_url":"https://github.com/Sergej-Radkovec","followers_url":"https://api.github.com/users/Sergej-Radkovec/followers","following_url":"https://api.github.com/users/Sergej-Radkovec/following{/other_user}","gists_url":"https://api.github.com/users/Sergej-Radkovec/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergej-Radkovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergej-Radkovec/subscriptions","organizations_url":"https://api.github.com/users/Sergej-Radkovec/orgs","repos_url":"https://api.github.com/users/Sergej-Radkovec/repos","events_url":"https://api.github.com/users/Sergej-Radkovec/events{/privacy}","received_events_url":"https://api.github.com/users/Sergej-Radkovec/received_events","type":"User","site_admin":false},"repo":{"id":147479544,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0Nzk1NDQ=","name":"radkovecsergej-js-home","full_name":"Sergej-Radkovec/radkovecsergej-js-home","private":false,"owner":{"login":"Sergej-Radkovec","id":39668120,"node_id":"MDQ6VXNlcjM5NjY4MTIw","avatar_url":"https://avatars2.githubusercontent.com/u/39668120?v=4","gravatar_id":"","url":"https://api.github.com/users/Sergej-Radkovec","html_url":"https://github.com/Sergej-Radkovec","followers_url":"https://api.github.com/users/Sergej-Radkovec/followers","following_url":"https://api.github.com/users/Sergej-Radkovec/following{/other_user}","gists_url":"https://api.github.com/users/Sergej-Radkovec/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergej-Radkovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergej-Radkovec/subscriptions","organizations_url":"https://api.github.com/users/Sergej-Radkovec/orgs","repos_url":"https://api.github.com/users/Sergej-Radkovec/repos","events_url":"https://api.github.com/users/Sergej-Radkovec/events{/privacy}","received_events_url":"https://api.github.com/users/Sergej-Radkovec/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home","description":null,"fork":false,"url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home","forks_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/forks","keys_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/teams","hooks_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/hooks","issue_events_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/events{/number}","events_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/events","assignees_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/assignees{/user}","branches_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/branches{/branch}","tags_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/tags","blobs_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/statuses/{sha}","languages_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/languages","stargazers_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/stargazers","contributors_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/contributors","subscribers_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/subscribers","subscription_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/subscription","commits_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/contents/{+path}","compare_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/merges","archive_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/downloads","issues_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues{/number}","pulls_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls{/number}","milestones_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/milestones{/number}","notifications_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/labels{/name}","releases_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/releases{/id}","deployments_url":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/deployments","created_at":"2018-09-05T07:41:36Z","updated_at":"2018-10-04T16:38:03Z","pushed_at":"2018-10-04T16:38:01Z","git_url":"git://github.com/Sergej-Radkovec/radkovecsergej-js-home.git","ssh_url":"git@github.com:Sergej-Radkovec/radkovecsergej-js-home.git","clone_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home.git","svn_url":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home","homepage":null,"size":88,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8"},"html":{"href":"https://github.com/Sergej-Radkovec/radkovecsergej-js-home/pull/8"},"issue":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/8"},"comments":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Sergej-Radkovec/radkovecsergej-js-home/statuses/bbc5cae074fac245629cda217a53f3cdafad3fdd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"instinct-it-academy"}}