{"action":"created","comment":{"url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/comments/238848194","pull_request_review_id":181491514,"id":238848194,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODg0ODE5NA==","diff_hunk":"@@ -3,23 +3,53 @@\n // use a 'for' loop\n function repeatStringNumTimesWithFor(str, num) {\n   // add your code here\n-  return str;\n+  var strOut = \"\";\n+  for (var i = 0; i < num; i++) {\n+    strOut = strOut + str;\n+  }\n+  return strOut;\n }\n \n console.log('for', repeatStringNumTimesWithFor('abc', 3));\n \n // use a 'while' loop\n function repeatStringNumTimesWithWhile(str, num) {\n   // add your code here\n-  return str;\n+  var str = 0;\n+\n+  while (str < 3) {\n+    str++;\n+  }\n+\n+\n+  // expected output: 3\n+\n }\n \n console.log('while', repeatStringNumTimesWithWhile('abc', 3));\n \n // use a 'do...while' loop\n function repeatStringNumTimesWithDoWhile(str, num) {\n   // add your code here\n-  return str;\n+  var str = \"\";\n+  var i = 0;\n+\n+  do {\n+    i = i + 1;\n+    str = str + i;\n+  } while (i < 3);\n+\n+\n }\n \n console.log('while', repeatStringNumTimesWithDoWhile('abc', 3));","path":"Week3/homework/3-step3.js","position":46,"original_position":46,"commit_id":"44081301180ec73302ca060808361afaf5121184","original_commit_id":"44081301180ec73302ca060808361afaf5121184","user":{"login":"daniela-olaru","id":43111296,"node_id":"MDQ6VXNlcjQzMTExMjk2","avatar_url":"https://avatars0.githubusercontent.com/u/43111296?v=4","gravatar_id":"","url":"https://api.github.com/users/daniela-olaru","html_url":"https://github.com/daniela-olaru","followers_url":"https://api.github.com/users/daniela-olaru/followers","following_url":"https://api.github.com/users/daniela-olaru/following{/other_user}","gists_url":"https://api.github.com/users/daniela-olaru/gists{/gist_id}","starred_url":"https://api.github.com/users/daniela-olaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniela-olaru/subscriptions","organizations_url":"https://api.github.com/users/daniela-olaru/orgs","repos_url":"https://api.github.com/users/daniela-olaru/repos","events_url":"https://api.github.com/users/daniela-olaru/events{/privacy}","received_events_url":"https://api.github.com/users/daniela-olaru/received_events","type":"User","site_admin":false},"body":"Same here, when run, it gives undefined. :)","created_at":"2018-12-04T21:36:38Z","updated_at":"2018-12-04T21:36:38Z","html_url":"https://github.com/HackYourFuture/JavaScript2/pull/200#discussion_r238848194","pull_request_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/comments/238848194"},"html":{"href":"https://github.com/HackYourFuture/JavaScript2/pull/200#discussion_r238848194"},"pull_request":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200","id":235250641,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MjUwNjQx","html_url":"https://github.com/HackYourFuture/JavaScript2/pull/200","diff_url":"https://github.com/HackYourFuture/JavaScript2/pull/200.diff","patch_url":"https://github.com/HackYourFuture/JavaScript2/pull/200.patch","issue_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/200","number":200,"state":"open","locked":false,"title":"Keyya class18 js2 week3","user":{"login":"keyyaali","id":43468230,"node_id":"MDQ6VXNlcjQzNDY4MjMw","avatar_url":"https://avatars0.githubusercontent.com/u/43468230?v=4","gravatar_id":"","url":"https://api.github.com/users/keyyaali","html_url":"https://github.com/keyyaali","followers_url":"https://api.github.com/users/keyyaali/followers","following_url":"https://api.github.com/users/keyyaali/following{/other_user}","gists_url":"https://api.github.com/users/keyyaali/gists{/gist_id}","starred_url":"https://api.github.com/users/keyyaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyyaali/subscriptions","organizations_url":"https://api.github.com/users/keyyaali/orgs","repos_url":"https://api.github.com/users/keyyaali/repos","events_url":"https://api.github.com/users/keyyaali/events{/privacy}","received_events_url":"https://api.github.com/users/keyyaali/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-02T10:29:42Z","updated_at":"2018-12-04T21:36:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81c1d9f48929719b99c83a903a592d08101d243a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":931608108,"node_id":"MDU6TGFiZWw5MzE2MDgxMDg=","url":"https://api.github.com/repos/HackYourFuture/JavaScript2/labels/homework3","name":"homework3","color":"0bead8","default":false},{"id":931609547,"node_id":"MDU6TGFiZWw5MzE2MDk1NDc=","url":"https://api.github.com/repos/HackYourFuture/JavaScript2/labels/to%20review","name":"to review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200/commits","review_comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200/comments","review_comment_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/200/comments","statuses_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/statuses/44081301180ec73302ca060808361afaf5121184","head":{"label":"keyyaali:keyya-class18-js2-week3","ref":"keyya-class18-js2-week3","sha":"44081301180ec73302ca060808361afaf5121184","user":{"login":"keyyaali","id":43468230,"node_id":"MDQ6VXNlcjQzNDY4MjMw","avatar_url":"https://avatars0.githubusercontent.com/u/43468230?v=4","gravatar_id":"","url":"https://api.github.com/users/keyyaali","html_url":"https://github.com/keyyaali","followers_url":"https://api.github.com/users/keyyaali/followers","following_url":"https://api.github.com/users/keyyaali/following{/other_user}","gists_url":"https://api.github.com/users/keyyaali/gists{/gist_id}","starred_url":"https://api.github.com/users/keyyaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyyaali/subscriptions","organizations_url":"https://api.github.com/users/keyyaali/orgs","repos_url":"https://api.github.com/users/keyyaali/repos","events_url":"https://api.github.com/users/keyyaali/events{/privacy}","received_events_url":"https://api.github.com/users/keyyaali/received_events","type":"User","site_admin":false},"repo":{"id":156685576,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY2ODU1NzY=","name":"JavaScript2","full_name":"keyyaali/JavaScript2","private":false,"owner":{"login":"keyyaali","id":43468230,"node_id":"MDQ6VXNlcjQzNDY4MjMw","avatar_url":"https://avatars0.githubusercontent.com/u/43468230?v=4","gravatar_id":"","url":"https://api.github.com/users/keyyaali","html_url":"https://github.com/keyyaali","followers_url":"https://api.github.com/users/keyyaali/followers","following_url":"https://api.github.com/users/keyyaali/following{/other_user}","gists_url":"https://api.github.com/users/keyyaali/gists{/gist_id}","starred_url":"https://api.github.com/users/keyyaali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyyaali/subscriptions","organizations_url":"https://api.github.com/users/keyyaali/orgs","repos_url":"https://api.github.com/users/keyyaali/repos","events_url":"https://api.github.com/users/keyyaali/events{/privacy}","received_events_url":"https://api.github.com/users/keyyaali/received_events","type":"User","site_admin":false},"html_url":"https://github.com/keyyaali/JavaScript2","description":"Course content for the JavaScript2 module","fork":true,"url":"https://api.github.com/repos/keyyaali/JavaScript2","forks_url":"https://api.github.com/repos/keyyaali/JavaScript2/forks","keys_url":"https://api.github.com/repos/keyyaali/JavaScript2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keyyaali/JavaScript2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keyyaali/JavaScript2/teams","hooks_url":"https://api.github.com/repos/keyyaali/JavaScript2/hooks","issue_events_url":"https://api.github.com/repos/keyyaali/JavaScript2/issues/events{/number}","events_url":"https://api.github.com/repos/keyyaali/JavaScript2/events","assignees_url":"https://api.github.com/repos/keyyaali/JavaScript2/assignees{/user}","branches_url":"https://api.github.com/repos/keyyaali/JavaScript2/branches{/branch}","tags_url":"https://api.github.com/repos/keyyaali/JavaScript2/tags","blobs_url":"https://api.github.com/repos/keyyaali/JavaScript2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keyyaali/JavaScript2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keyyaali/JavaScript2/git/refs{/sha}","trees_url":"https://api.github.com/repos/keyyaali/JavaScript2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keyyaali/JavaScript2/statuses/{sha}","languages_url":"https://api.github.com/repos/keyyaali/JavaScript2/languages","stargazers_url":"https://api.github.com/repos/keyyaali/JavaScript2/stargazers","contributors_url":"https://api.github.com/repos/keyyaali/JavaScript2/contributors","subscribers_url":"https://api.github.com/repos/keyyaali/JavaScript2/subscribers","subscription_url":"https://api.github.com/repos/keyyaali/JavaScript2/subscription","commits_url":"https://api.github.com/repos/keyyaali/JavaScript2/commits{/sha}","git_commits_url":"https://api.github.com/repos/keyyaali/JavaScript2/git/commits{/sha}","comments_url":"https://api.github.com/repos/keyyaali/JavaScript2/comments{/number}","issue_comment_url":"https://api.github.com/repos/keyyaali/JavaScript2/issues/comments{/number}","contents_url":"https://api.github.com/repos/keyyaali/JavaScript2/contents/{+path}","compare_url":"https://api.github.com/repos/keyyaali/JavaScript2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keyyaali/JavaScript2/merges","archive_url":"https://api.github.com/repos/keyyaali/JavaScript2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keyyaali/JavaScript2/downloads","issues_url":"https://api.github.com/repos/keyyaali/JavaScript2/issues{/number}","pulls_url":"https://api.github.com/repos/keyyaali/JavaScript2/pulls{/number}","milestones_url":"https://api.github.com/repos/keyyaali/JavaScript2/milestones{/number}","notifications_url":"https://api.github.com/repos/keyyaali/JavaScript2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keyyaali/JavaScript2/labels{/name}","releases_url":"https://api.github.com/repos/keyyaali/JavaScript2/releases{/id}","deployments_url":"https://api.github.com/repos/keyyaali/JavaScript2/deployments","created_at":"2018-11-08T09:54:05Z","updated_at":"2018-11-23T00:33:08Z","pushed_at":"2018-12-02T10:26:33Z","git_url":"git://github.com/keyyaali/JavaScript2.git","ssh_url":"git@github.com:keyyaali/JavaScript2.git","clone_url":"https://github.com/keyyaali/JavaScript2.git","svn_url":"https://github.com/keyyaali/JavaScript2","homepage":null,"size":11131,"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,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HackYourFuture:master","ref":"master","sha":"bcf127e5ccf4c80019a0152e70d1b4526f54e24e","user":{"login":"HackYourFuture","id":20858568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":124885266,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ4ODUyNjY=","name":"JavaScript2","full_name":"HackYourFuture/JavaScript2","private":false,"owner":{"login":"HackYourFuture","id":20858568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODU4NTY4","avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/HackYourFuture/JavaScript2","description":"Course content for the JavaScript2 module","fork":false,"url":"https://api.github.com/repos/HackYourFuture/JavaScript2","forks_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/forks","keys_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/teams","hooks_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/events","assignees_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/tags","blobs_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/subscription","commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/merges","archive_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/downloads","issues_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture/JavaScript2/deployments","created_at":"2018-03-12T12:24:28Z","updated_at":"2018-11-24T18:38:42Z","pushed_at":"2018-12-03T21:18:34Z","git_url":"git://github.com/HackYourFuture/JavaScript2.git","ssh_url":"git@github.com:HackYourFuture/JavaScript2.git","clone_url":"https://github.com/HackYourFuture/JavaScript2.git","svn_url":"https://github.com/HackYourFuture/JavaScript2","homepage":null,"size":11121,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":97,"open_issues":35,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200"},"html":{"href":"https://github.com/HackYourFuture/JavaScript2/pull/200"},"issue":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/200"},"comments":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/HackYourFuture/JavaScript2/statuses/44081301180ec73302ca060808361afaf5121184"}},"author_association":"NONE"}}
{"actor":{"display_login":"daniela-olaru"}}