{"action":"created","comment":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/173631009","pull_request_review_id":102859441,"id":173631009,"diff_hunk":"@@ -0,0 +1,86 @@\n+/* eslint no-var: \"off\" */\n+/* eslint no-unused-vars: \"off\" */\n+/* eslint max-len: \"off\" */\n+\n+/**\n+ * Функция вывода строк для работы в fizzBuzz\n+ * @param {*} a \n+ */\n+function log(a) {\n+    console.log(a);\n+}\n+\n+/* Раместите ваш код ниже */\n+\n+/**\n+ * реализовать фукнцию `fizzBuzz` \n+ * которая выводит числа от 1 до 100. \n+ * Если число кратно 3 - вместо числа вывести `Fizz`. \n+ * Если кратно 5 - вывести вместо числа `Buzz`. \n+ * Если число кратно и 3 и 5 - вывести вместо числа `FizzBuzz`. \n+ * Для вывода использовать фукнцию `log` (аналогично заданию в классе). \n+ * В теле функции нельзя использовать  `if`, `switch`, тернарный оператор `? :`\n+ */\n+function fizzBuzz() {\n+ /* Ваше решение */\n+ for(var i=1; i<=100; i++){\n+        var x=i;\n+        if (x%15===0) x='FizzBuzz';\n+\t\tif (x%3===0) x='Fizz';        \n+\t\tif (x%5===0) x='Buzz';\t\t\n+        log(x);\n+    }  \n+}\n+\n+\n+/**\n+ * реализовать фукнцию  `isPolindrom`, \n+ * которая принимает на вход строку и возвращает результат проверки (`true`/ `false` ),\n+ * является строка полндромом (одинакого читается с лева на право и с права на лево ) или нет\n+ * @param {string} textString \n+ * @return {boolean} Является строка полндромом (одинакого читается с лева на право и с права на лево ) или нет\n+ */\n+function isPalindrom(textString){\n+ /* Ваше решение */\n+ \n+\tx=textString+\"\";\n+  var len=x.length;\n+  var l=len%2;\n+  var n=Math.floor(len/2);\n+  var mas=x.split(\"\");\n+  var mas1=mas.concat([]);\n+  var b=true;\n+  mas.reverse();  \n+  for(var i=0; i<n; i++){    ","path":"01/ht/gitkoshelew/script.js","position":54,"original_position":54,"commit_id":"b3615941974b22c903a89a6f7fbdc03855e8e7cf","original_commit_id":"b3615941974b22c903a89a6f7fbdc03855e8e7cf","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"body":"а если без массива? а если не переворачивать массив? зачем лишние данные для работы?","created_at":"2018-03-10T18:46:03Z","updated_at":"2018-03-10T18:46:03Z","html_url":"https://github.com/vvscode/js--base-course/pull/307#discussion_r173631009","pull_request_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/307","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/173631009"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/307#discussion_r173631009"},"pull_request":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/307"}}},"pull_request":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/307","id":174173871,"html_url":"https://github.com/vvscode/js--base-course/pull/307","diff_url":"https://github.com/vvscode/js--base-course/pull/307.diff","patch_url":"https://github.com/vvscode/js--base-course/pull/307.patch","issue_url":"https://api.github.com/repos/vvscode/js--base-course/issues/307","number":307,"state":"open","locked":false,"title":"Домашнее задание.","user":{"login":"gitkoshelew","id":27222150,"avatar_url":"https://avatars1.githubusercontent.com/u/27222150?v=4","gravatar_id":"","url":"https://api.github.com/users/gitkoshelew","html_url":"https://github.com/gitkoshelew","followers_url":"https://api.github.com/users/gitkoshelew/followers","following_url":"https://api.github.com/users/gitkoshelew/following{/other_user}","gists_url":"https://api.github.com/users/gitkoshelew/gists{/gist_id}","starred_url":"https://api.github.com/users/gitkoshelew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitkoshelew/subscriptions","organizations_url":"https://api.github.com/users/gitkoshelew/orgs","repos_url":"https://api.github.com/users/gitkoshelew/repos","events_url":"https://api.github.com/users/gitkoshelew/events{/privacy}","received_events_url":"https://api.github.com/users/gitkoshelew/received_events","type":"User","site_admin":false},"body":"Палиндром не проходит ни одного теста. но в glitch работает. ругается только  на использование методов массива. ","created_at":"2018-03-10T15:02:14Z","updated_at":"2018-03-10T18:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83210d16a877d38c0b11be80e9034630222690fe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/307/commits","review_comments_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/307/comments","review_comment_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vvscode/js--base-course/issues/307/comments","statuses_url":"https://api.github.com/repos/vvscode/js--base-course/statuses/b3615941974b22c903a89a6f7fbdc03855e8e7cf","head":{"label":"gitkoshelew:master","ref":"master","sha":"b3615941974b22c903a89a6f7fbdc03855e8e7cf","user":{"login":"gitkoshelew","id":27222150,"avatar_url":"https://avatars1.githubusercontent.com/u/27222150?v=4","gravatar_id":"","url":"https://api.github.com/users/gitkoshelew","html_url":"https://github.com/gitkoshelew","followers_url":"https://api.github.com/users/gitkoshelew/followers","following_url":"https://api.github.com/users/gitkoshelew/following{/other_user}","gists_url":"https://api.github.com/users/gitkoshelew/gists{/gist_id}","starred_url":"https://api.github.com/users/gitkoshelew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitkoshelew/subscriptions","organizations_url":"https://api.github.com/users/gitkoshelew/orgs","repos_url":"https://api.github.com/users/gitkoshelew/repos","events_url":"https://api.github.com/users/gitkoshelew/events{/privacy}","received_events_url":"https://api.github.com/users/gitkoshelew/received_events","type":"User","site_admin":false},"repo":{"id":123692234,"name":"js--base-course","full_name":"gitkoshelew/js--base-course","owner":{"login":"gitkoshelew","id":27222150,"avatar_url":"https://avatars1.githubusercontent.com/u/27222150?v=4","gravatar_id":"","url":"https://api.github.com/users/gitkoshelew","html_url":"https://github.com/gitkoshelew","followers_url":"https://api.github.com/users/gitkoshelew/followers","following_url":"https://api.github.com/users/gitkoshelew/following{/other_user}","gists_url":"https://api.github.com/users/gitkoshelew/gists{/gist_id}","starred_url":"https://api.github.com/users/gitkoshelew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitkoshelew/subscriptions","organizations_url":"https://api.github.com/users/gitkoshelew/orgs","repos_url":"https://api.github.com/users/gitkoshelew/repos","events_url":"https://api.github.com/users/gitkoshelew/events{/privacy}","received_events_url":"https://api.github.com/users/gitkoshelew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gitkoshelew/js--base-course","description":"Базовый курс JS","fork":true,"url":"https://api.github.com/repos/gitkoshelew/js--base-course","forks_url":"https://api.github.com/repos/gitkoshelew/js--base-course/forks","keys_url":"https://api.github.com/repos/gitkoshelew/js--base-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitkoshelew/js--base-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitkoshelew/js--base-course/teams","hooks_url":"https://api.github.com/repos/gitkoshelew/js--base-course/hooks","issue_events_url":"https://api.github.com/repos/gitkoshelew/js--base-course/issues/events{/number}","events_url":"https://api.github.com/repos/gitkoshelew/js--base-course/events","assignees_url":"https://api.github.com/repos/gitkoshelew/js--base-course/assignees{/user}","branches_url":"https://api.github.com/repos/gitkoshelew/js--base-course/branches{/branch}","tags_url":"https://api.github.com/repos/gitkoshelew/js--base-course/tags","blobs_url":"https://api.github.com/repos/gitkoshelew/js--base-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitkoshelew/js--base-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitkoshelew/js--base-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitkoshelew/js--base-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitkoshelew/js--base-course/statuses/{sha}","languages_url":"https://api.github.com/repos/gitkoshelew/js--base-course/languages","stargazers_url":"https://api.github.com/repos/gitkoshelew/js--base-course/stargazers","contributors_url":"https://api.github.com/repos/gitkoshelew/js--base-course/contributors","subscribers_url":"https://api.github.com/repos/gitkoshelew/js--base-course/subscribers","subscription_url":"https://api.github.com/repos/gitkoshelew/js--base-course/subscription","commits_url":"https://api.github.com/repos/gitkoshelew/js--base-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitkoshelew/js--base-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitkoshelew/js--base-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitkoshelew/js--base-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitkoshelew/js--base-course/contents/{+path}","compare_url":"https://api.github.com/repos/gitkoshelew/js--base-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitkoshelew/js--base-course/merges","archive_url":"https://api.github.com/repos/gitkoshelew/js--base-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitkoshelew/js--base-course/downloads","issues_url":"https://api.github.com/repos/gitkoshelew/js--base-course/issues{/number}","pulls_url":"https://api.github.com/repos/gitkoshelew/js--base-course/pulls{/number}","milestones_url":"https://api.github.com/repos/gitkoshelew/js--base-course/milestones{/number}","notifications_url":"https://api.github.com/repos/gitkoshelew/js--base-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitkoshelew/js--base-course/labels{/name}","releases_url":"https://api.github.com/repos/gitkoshelew/js--base-course/releases{/id}","deployments_url":"https://api.github.com/repos/gitkoshelew/js--base-course/deployments","created_at":"2018-03-03T13:00:28Z","updated_at":"2018-03-03T13:00:30Z","pushed_at":"2018-03-10T15:16:46Z","git_url":"git://github.com/gitkoshelew/js--base-course.git","ssh_url":"git@github.com:gitkoshelew/js--base-course.git","clone_url":"https://github.com/gitkoshelew/js--base-course.git","svn_url":"https://github.com/gitkoshelew/js--base-course","homepage":null,"size":22291,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"vvscode:master","ref":"master","sha":"0601185eaf150ddeebd680a2af04056fbfde4b44","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"repo":{"id":85982423,"name":"js--base-course","full_name":"vvscode/js--base-course","owner":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vvscode/js--base-course","description":"Базовый курс JS","fork":false,"url":"https://api.github.com/repos/vvscode/js--base-course","forks_url":"https://api.github.com/repos/vvscode/js--base-course/forks","keys_url":"https://api.github.com/repos/vvscode/js--base-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vvscode/js--base-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vvscode/js--base-course/teams","hooks_url":"https://api.github.com/repos/vvscode/js--base-course/hooks","issue_events_url":"https://api.github.com/repos/vvscode/js--base-course/issues/events{/number}","events_url":"https://api.github.com/repos/vvscode/js--base-course/events","assignees_url":"https://api.github.com/repos/vvscode/js--base-course/assignees{/user}","branches_url":"https://api.github.com/repos/vvscode/js--base-course/branches{/branch}","tags_url":"https://api.github.com/repos/vvscode/js--base-course/tags","blobs_url":"https://api.github.com/repos/vvscode/js--base-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vvscode/js--base-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vvscode/js--base-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/vvscode/js--base-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vvscode/js--base-course/statuses/{sha}","languages_url":"https://api.github.com/repos/vvscode/js--base-course/languages","stargazers_url":"https://api.github.com/repos/vvscode/js--base-course/stargazers","contributors_url":"https://api.github.com/repos/vvscode/js--base-course/contributors","subscribers_url":"https://api.github.com/repos/vvscode/js--base-course/subscribers","subscription_url":"https://api.github.com/repos/vvscode/js--base-course/subscription","commits_url":"https://api.github.com/repos/vvscode/js--base-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/vvscode/js--base-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/vvscode/js--base-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/vvscode/js--base-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/vvscode/js--base-course/contents/{+path}","compare_url":"https://api.github.com/repos/vvscode/js--base-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vvscode/js--base-course/merges","archive_url":"https://api.github.com/repos/vvscode/js--base-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vvscode/js--base-course/downloads","issues_url":"https://api.github.com/repos/vvscode/js--base-course/issues{/number}","pulls_url":"https://api.github.com/repos/vvscode/js--base-course/pulls{/number}","milestones_url":"https://api.github.com/repos/vvscode/js--base-course/milestones{/number}","notifications_url":"https://api.github.com/repos/vvscode/js--base-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vvscode/js--base-course/labels{/name}","releases_url":"https://api.github.com/repos/vvscode/js--base-course/releases{/id}","deployments_url":"https://api.github.com/repos/vvscode/js--base-course/deployments","created_at":"2017-03-23T18:10:10Z","updated_at":"2018-03-03T15:19:12Z","pushed_at":"2018-03-10T18:43:49Z","git_url":"git://github.com/vvscode/js--base-course.git","ssh_url":"git@github.com:vvscode/js--base-course.git","clone_url":"https://github.com/vvscode/js--base-course.git","svn_url":"https://github.com/vvscode/js--base-course","homepage":"http://bit.ly/codehardjs","size":22310,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":81,"open_issues":4,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/307"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/307"},"issue":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/307"},"comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/vvscode/js--base-course/statuses/b3615941974b22c903a89a6f7fbdc03855e8e7cf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vvscode"}}