{"action":"created","comment":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/117465100","pull_request_review_id":39176983,"id":117465100,"diff_hunk":"@@ -0,0 +1,144 @@\n+﻿## - Что такое переменная?\n+Переменная - это выделенная область памяти, которое в коде имеет какое-то имя, причем желательно несущиее какой-то смысл.\n+## -  как создать переменную? Примеры кода\n+Если я не ошибаюсь после ES5 надо обязательно `var`\n+```\n+var someName;\n+```\n+Так же можно проинециализировать переменную сразу, т.е. задать ей начальное значение (его можно поменять в любой момент)\n+```\n+var someName=0;\n+```\n+## - виды циклов ( 3 вида ) ? Примеры использования\n+\t1. For\n+\t```\n+\tfor (var i = 0; i < 5; i++)\n+\t{\n+\t    //Какой-то код, который нужно зациклить\n+\t}\n+\t```\n+\t2. While\n+\tТ.к. данный цикл проверяет сразу условие, то может не зайти в тело цикла\n+\t```\n+\tvar i=0;\n+\twhile (i<5)\n+\t{\n+\t    //Какой-то код, который нужно зациклить\n+\t    i++;\n+\t}\n+\t```\n+\t3. do while\n+\tПройдет как минимум один раз\n+\t```\n+\tvar i=0;\n+\tdo {\n+\t    //Какой-то код, который нужно зациклить\n+\t    i++;\n+\t}while (i<5)\n+\t```\n+## - сколько и какие типы данных в javascript? Примеры создания переменных каждого типа\n+6 типов данных\n+ ```\n+\tnumber var i=5;\n+\tstring var a='qwer' //var a=\"qwer\"\n+\tboolean var q=true;","path":"00/ht/StolpnerA/answers.md","position":44,"original_position":44,"commit_id":"1e84225ffabc210570896c581d0ee6ab77461b52","original_commit_id":"1e84225ffabc210570896c581d0ee6ab77461b52","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars2.githubusercontent.com/u/6904368?v=3","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":"7, Symbol \r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Data_types","created_at":"2017-05-19T12:04:08Z","updated_at":"2017-05-19T12:04:09Z","html_url":"https://github.com/vvscode/js--base-course/pull/20#discussion_r117465100","pull_request_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/117465100"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/20#discussion_r117465100"},"pull_request":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/20","id":121484053,"html_url":"https://github.com/vvscode/js--base-course/pull/20","diff_url":"https://github.com/vvscode/js--base-course/pull/20.diff","patch_url":"https://github.com/vvscode/js--base-course/pull/20.patch","issue_url":"https://api.github.com/repos/vvscode/js--base-course/issues/20","number":20,"state":"open","locked":false,"title":"Master","user":{"login":"StolpnerA","id":24719663,"avatar_url":"https://avatars0.githubusercontent.com/u/24719663?v=3","gravatar_id":"","url":"https://api.github.com/users/StolpnerA","html_url":"https://github.com/StolpnerA","followers_url":"https://api.github.com/users/StolpnerA/followers","following_url":"https://api.github.com/users/StolpnerA/following{/other_user}","gists_url":"https://api.github.com/users/StolpnerA/gists{/gist_id}","starred_url":"https://api.github.com/users/StolpnerA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StolpnerA/subscriptions","organizations_url":"https://api.github.com/users/StolpnerA/orgs","repos_url":"https://api.github.com/users/StolpnerA/repos","events_url":"https://api.github.com/users/StolpnerA/events{/privacy}","received_events_url":"https://api.github.com/users/StolpnerA/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-05-19T11:52:10Z","updated_at":"2017-05-19T12:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d04dbad1a9015722ca0542657579f7281657b2c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/20/commits","review_comments_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/20/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/20/comments","statuses_url":"https://api.github.com/repos/vvscode/js--base-course/statuses/1e84225ffabc210570896c581d0ee6ab77461b52","head":{"label":"StolpnerA:master","ref":"master","sha":"1e84225ffabc210570896c581d0ee6ab77461b52","user":{"login":"StolpnerA","id":24719663,"avatar_url":"https://avatars0.githubusercontent.com/u/24719663?v=3","gravatar_id":"","url":"https://api.github.com/users/StolpnerA","html_url":"https://github.com/StolpnerA","followers_url":"https://api.github.com/users/StolpnerA/followers","following_url":"https://api.github.com/users/StolpnerA/following{/other_user}","gists_url":"https://api.github.com/users/StolpnerA/gists{/gist_id}","starred_url":"https://api.github.com/users/StolpnerA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StolpnerA/subscriptions","organizations_url":"https://api.github.com/users/StolpnerA/orgs","repos_url":"https://api.github.com/users/StolpnerA/repos","events_url":"https://api.github.com/users/StolpnerA/events{/privacy}","received_events_url":"https://api.github.com/users/StolpnerA/received_events","type":"User","site_admin":false},"repo":{"id":91448557,"name":"js--base-course","full_name":"StolpnerA/js--base-course","owner":{"login":"StolpnerA","id":24719663,"avatar_url":"https://avatars0.githubusercontent.com/u/24719663?v=3","gravatar_id":"","url":"https://api.github.com/users/StolpnerA","html_url":"https://github.com/StolpnerA","followers_url":"https://api.github.com/users/StolpnerA/followers","following_url":"https://api.github.com/users/StolpnerA/following{/other_user}","gists_url":"https://api.github.com/users/StolpnerA/gists{/gist_id}","starred_url":"https://api.github.com/users/StolpnerA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StolpnerA/subscriptions","organizations_url":"https://api.github.com/users/StolpnerA/orgs","repos_url":"https://api.github.com/users/StolpnerA/repos","events_url":"https://api.github.com/users/StolpnerA/events{/privacy}","received_events_url":"https://api.github.com/users/StolpnerA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StolpnerA/js--base-course","description":"Базовый курс JS","fork":true,"url":"https://api.github.com/repos/StolpnerA/js--base-course","forks_url":"https://api.github.com/repos/StolpnerA/js--base-course/forks","keys_url":"https://api.github.com/repos/StolpnerA/js--base-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StolpnerA/js--base-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StolpnerA/js--base-course/teams","hooks_url":"https://api.github.com/repos/StolpnerA/js--base-course/hooks","issue_events_url":"https://api.github.com/repos/StolpnerA/js--base-course/issues/events{/number}","events_url":"https://api.github.com/repos/StolpnerA/js--base-course/events","assignees_url":"https://api.github.com/repos/StolpnerA/js--base-course/assignees{/user}","branches_url":"https://api.github.com/repos/StolpnerA/js--base-course/branches{/branch}","tags_url":"https://api.github.com/repos/StolpnerA/js--base-course/tags","blobs_url":"https://api.github.com/repos/StolpnerA/js--base-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StolpnerA/js--base-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StolpnerA/js--base-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/StolpnerA/js--base-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StolpnerA/js--base-course/statuses/{sha}","languages_url":"https://api.github.com/repos/StolpnerA/js--base-course/languages","stargazers_url":"https://api.github.com/repos/StolpnerA/js--base-course/stargazers","contributors_url":"https://api.github.com/repos/StolpnerA/js--base-course/contributors","subscribers_url":"https://api.github.com/repos/StolpnerA/js--base-course/subscribers","subscription_url":"https://api.github.com/repos/StolpnerA/js--base-course/subscription","commits_url":"https://api.github.com/repos/StolpnerA/js--base-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/StolpnerA/js--base-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/StolpnerA/js--base-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/StolpnerA/js--base-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/StolpnerA/js--base-course/contents/{+path}","compare_url":"https://api.github.com/repos/StolpnerA/js--base-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StolpnerA/js--base-course/merges","archive_url":"https://api.github.com/repos/StolpnerA/js--base-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StolpnerA/js--base-course/downloads","issues_url":"https://api.github.com/repos/StolpnerA/js--base-course/issues{/number}","pulls_url":"https://api.github.com/repos/StolpnerA/js--base-course/pulls{/number}","milestones_url":"https://api.github.com/repos/StolpnerA/js--base-course/milestones{/number}","notifications_url":"https://api.github.com/repos/StolpnerA/js--base-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StolpnerA/js--base-course/labels{/name}","releases_url":"https://api.github.com/repos/StolpnerA/js--base-course/releases{/id}","deployments_url":"https://api.github.com/repos/StolpnerA/js--base-course/deployments","created_at":"2017-05-16T11:02:11Z","updated_at":"2017-05-16T11:02:13Z","pushed_at":"2017-05-19T11:52:08Z","git_url":"git://github.com/StolpnerA/js--base-course.git","ssh_url":"git@github.com:StolpnerA/js--base-course.git","clone_url":"https://github.com/StolpnerA/js--base-course.git","svn_url":"https://github.com/StolpnerA/js--base-course","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"vvscode:master","ref":"master","sha":"ef37ea20bc167ea61886ef97b56c4222678ab802","user":{"login":"vvscode","id":6904368,"avatar_url":"https://avatars2.githubusercontent.com/u/6904368?v=3","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://avatars2.githubusercontent.com/u/6904368?v=3","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":"2017-05-19T10:15:12Z","pushed_at":"2017-05-19T11:56:27Z","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":null,"size":32,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":14,"forks":11,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/20"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/20"},"issue":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/20"},"comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/20/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/20/commits"},"statuses":{"href":"https://api.github.com/repos/vvscode/js--base-course/statuses/1e84225ffabc210570896c581d0ee6ab77461b52"}}}}
{"actor":{"display_login":"vvscode"}}