{"action":"created","comment":{"url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/comments/172954982","pull_request_review_id":102049263,"id":172954982,"diff_hunk":"@@ -7,7 +7,11 @@\n   Tip: use the string method .split() and the array method .join()\n */\n \n-function capitalise(str) {}\n+function capitalise(str) {\n+  var str = split (separator) 'h');","path":"week-2/L-array-methods-2/exercise2.js","position":6,"original_position":6,"commit_id":"33aaee42c28555b164efa7a7b9e2ced4b9f1c5ae","original_commit_id":"33aaee42c28555b164efa7a7b9e2ced4b9f1c5ae","user":{"login":"tekul","id":191720,"avatar_url":"https://avatars1.githubusercontent.com/u/191720?v=4","gravatar_id":"","url":"https://api.github.com/users/tekul","html_url":"https://github.com/tekul","followers_url":"https://api.github.com/users/tekul/followers","following_url":"https://api.github.com/users/tekul/following{/other_user}","gists_url":"https://api.github.com/users/tekul/gists{/gist_id}","starred_url":"https://api.github.com/users/tekul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tekul/subscriptions","organizations_url":"https://api.github.com/users/tekul/orgs","repos_url":"https://api.github.com/users/tekul/repos","events_url":"https://api.github.com/users/tekul/events{/privacy}","received_events_url":"https://api.github.com/users/tekul/received_events","type":"User","site_admin":false},"body":"I'm a bit confused here. What's this doing? It's quite a tricky problem. A good idea is to search for the functions it suggests to use. I just did and I found [this page](https://www.w3schools.com/jsref/jsref_split.asp), which also has a useful tip:\r\n\r\n> Tip: If an empty string (\"\") is used as the separator, the string is split between each character.\r\n\r\nPlaying with that and the `join` function in node:\r\n\r\n```\r\n> \"daniel\".split(\"\");\r\n[ 'd', 'a', 'n', 'i', 'e', 'l' ]\r\n> \"daniel\".split(\"\").join();\r\n'd,a,n,i,e,l'\r\n> \"daniel\".split(\"\").join(\"\");\r\n'daniel'\r\n```\r\nSo if you can find out how to convert a string to upper case, you can split the string into an array  of characters, upper case the first element of the array, then join them back together.\r\n","created_at":"2018-03-07T19:19:05Z","updated_at":"2018-03-07T19:21:12Z","html_url":"https://github.com/CodeYourFuture/js-exercises/pull/12#discussion_r172954982","pull_request_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/comments/172954982"},"html":{"href":"https://github.com/CodeYourFuture/js-exercises/pull/12#discussion_r172954982"},"pull_request":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12","id":171174476,"html_url":"https://github.com/CodeYourFuture/js-exercises/pull/12","diff_url":"https://github.com/CodeYourFuture/js-exercises/pull/12.diff","patch_url":"https://github.com/CodeYourFuture/js-exercises/pull/12.patch","issue_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/12","number":12,"state":"open","locked":false,"title":"Lesley week 1 first","user":{"login":"LslyKng","id":35503136,"avatar_url":"https://avatars3.githubusercontent.com/u/35503136?v=4","gravatar_id":"","url":"https://api.github.com/users/LslyKng","html_url":"https://github.com/LslyKng","followers_url":"https://api.github.com/users/LslyKng/followers","following_url":"https://api.github.com/users/LslyKng/following{/other_user}","gists_url":"https://api.github.com/users/LslyKng/gists{/gist_id}","starred_url":"https://api.github.com/users/LslyKng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LslyKng/subscriptions","organizations_url":"https://api.github.com/users/LslyKng/orgs","repos_url":"https://api.github.com/users/LslyKng/repos","events_url":"https://api.github.com/users/LslyKng/events{/privacy}","received_events_url":"https://api.github.com/users/LslyKng/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-24T11:20:24Z","updated_at":"2018-03-07T19:21:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1ebca885c259b623ad1b8f287269eff9a20ff2c","assignee":{"login":"djgrant","id":1670902,"avatar_url":"https://avatars2.githubusercontent.com/u/1670902?v=4","gravatar_id":"","url":"https://api.github.com/users/djgrant","html_url":"https://github.com/djgrant","followers_url":"https://api.github.com/users/djgrant/followers","following_url":"https://api.github.com/users/djgrant/following{/other_user}","gists_url":"https://api.github.com/users/djgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/djgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgrant/subscriptions","organizations_url":"https://api.github.com/users/djgrant/orgs","repos_url":"https://api.github.com/users/djgrant/repos","events_url":"https://api.github.com/users/djgrant/events{/privacy}","received_events_url":"https://api.github.com/users/djgrant/received_events","type":"User","site_admin":false},"assignees":[{"login":"djgrant","id":1670902,"avatar_url":"https://avatars2.githubusercontent.com/u/1670902?v=4","gravatar_id":"","url":"https://api.github.com/users/djgrant","html_url":"https://github.com/djgrant","followers_url":"https://api.github.com/users/djgrant/followers","following_url":"https://api.github.com/users/djgrant/following{/other_user}","gists_url":"https://api.github.com/users/djgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/djgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djgrant/subscriptions","organizations_url":"https://api.github.com/users/djgrant/orgs","repos_url":"https://api.github.com/users/djgrant/repos","events_url":"https://api.github.com/users/djgrant/events{/privacy}","received_events_url":"https://api.github.com/users/djgrant/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":852372672,"url":"https://api.github.com/repos/CodeYourFuture/js-exercises/labels/week-1-class","name":"week-1-class","color":"55f478","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12/commits","review_comments_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12/comments","review_comment_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/12/comments","statuses_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/statuses/33aaee42c28555b164efa7a7b9e2ced4b9f1c5ae","head":{"label":"LslyKng:master","ref":"master","sha":"33aaee42c28555b164efa7a7b9e2ced4b9f1c5ae","user":{"login":"LslyKng","id":35503136,"avatar_url":"https://avatars3.githubusercontent.com/u/35503136?v=4","gravatar_id":"","url":"https://api.github.com/users/LslyKng","html_url":"https://github.com/LslyKng","followers_url":"https://api.github.com/users/LslyKng/followers","following_url":"https://api.github.com/users/LslyKng/following{/other_user}","gists_url":"https://api.github.com/users/LslyKng/gists{/gist_id}","starred_url":"https://api.github.com/users/LslyKng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LslyKng/subscriptions","organizations_url":"https://api.github.com/users/LslyKng/orgs","repos_url":"https://api.github.com/users/LslyKng/repos","events_url":"https://api.github.com/users/LslyKng/events{/privacy}","received_events_url":"https://api.github.com/users/LslyKng/received_events","type":"User","site_admin":false},"repo":{"id":121851761,"name":"js-exercises","full_name":"LslyKng/js-exercises","owner":{"login":"LslyKng","id":35503136,"avatar_url":"https://avatars3.githubusercontent.com/u/35503136?v=4","gravatar_id":"","url":"https://api.github.com/users/LslyKng","html_url":"https://github.com/LslyKng","followers_url":"https://api.github.com/users/LslyKng/followers","following_url":"https://api.github.com/users/LslyKng/following{/other_user}","gists_url":"https://api.github.com/users/LslyKng/gists{/gist_id}","starred_url":"https://api.github.com/users/LslyKng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LslyKng/subscriptions","organizations_url":"https://api.github.com/users/LslyKng/orgs","repos_url":"https://api.github.com/users/LslyKng/repos","events_url":"https://api.github.com/users/LslyKng/events{/privacy}","received_events_url":"https://api.github.com/users/LslyKng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LslyKng/js-exercises","description":"JavaScript exercises for Code Your Future students","fork":true,"url":"https://api.github.com/repos/LslyKng/js-exercises","forks_url":"https://api.github.com/repos/LslyKng/js-exercises/forks","keys_url":"https://api.github.com/repos/LslyKng/js-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LslyKng/js-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LslyKng/js-exercises/teams","hooks_url":"https://api.github.com/repos/LslyKng/js-exercises/hooks","issue_events_url":"https://api.github.com/repos/LslyKng/js-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/LslyKng/js-exercises/events","assignees_url":"https://api.github.com/repos/LslyKng/js-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/LslyKng/js-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/LslyKng/js-exercises/tags","blobs_url":"https://api.github.com/repos/LslyKng/js-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LslyKng/js-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LslyKng/js-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/LslyKng/js-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LslyKng/js-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/LslyKng/js-exercises/languages","stargazers_url":"https://api.github.com/repos/LslyKng/js-exercises/stargazers","contributors_url":"https://api.github.com/repos/LslyKng/js-exercises/contributors","subscribers_url":"https://api.github.com/repos/LslyKng/js-exercises/subscribers","subscription_url":"https://api.github.com/repos/LslyKng/js-exercises/subscription","commits_url":"https://api.github.com/repos/LslyKng/js-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/LslyKng/js-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/LslyKng/js-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/LslyKng/js-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/LslyKng/js-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/LslyKng/js-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LslyKng/js-exercises/merges","archive_url":"https://api.github.com/repos/LslyKng/js-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LslyKng/js-exercises/downloads","issues_url":"https://api.github.com/repos/LslyKng/js-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/LslyKng/js-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/LslyKng/js-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/LslyKng/js-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LslyKng/js-exercises/labels{/name}","releases_url":"https://api.github.com/repos/LslyKng/js-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/LslyKng/js-exercises/deployments","created_at":"2018-02-17T12:00:56Z","updated_at":"2018-02-17T12:00:58Z","pushed_at":"2018-03-01T08:15:57Z","git_url":"git://github.com/LslyKng/js-exercises.git","ssh_url":"git@github.com:LslyKng/js-exercises.git","clone_url":"https://github.com/LslyKng/js-exercises.git","svn_url":"https://github.com/LslyKng/js-exercises","homepage":null,"size":72,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CodeYourFuture:master","ref":"master","sha":"b932d050194dc1e5f2fd5a67b4833e69ff677300","user":{"login":"CodeYourFuture","id":22743767,"avatar_url":"https://avatars3.githubusercontent.com/u/22743767?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeYourFuture","html_url":"https://github.com/CodeYourFuture","followers_url":"https://api.github.com/users/CodeYourFuture/followers","following_url":"https://api.github.com/users/CodeYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/CodeYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeYourFuture/subscriptions","organizations_url":"https://api.github.com/users/CodeYourFuture/orgs","repos_url":"https://api.github.com/users/CodeYourFuture/repos","events_url":"https://api.github.com/users/CodeYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/CodeYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":121384131,"name":"js-exercises","full_name":"CodeYourFuture/js-exercises","owner":{"login":"CodeYourFuture","id":22743767,"avatar_url":"https://avatars3.githubusercontent.com/u/22743767?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeYourFuture","html_url":"https://github.com/CodeYourFuture","followers_url":"https://api.github.com/users/CodeYourFuture/followers","following_url":"https://api.github.com/users/CodeYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/CodeYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeYourFuture/subscriptions","organizations_url":"https://api.github.com/users/CodeYourFuture/orgs","repos_url":"https://api.github.com/users/CodeYourFuture/repos","events_url":"https://api.github.com/users/CodeYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/CodeYourFuture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeYourFuture/js-exercises","description":"JavaScript exercises for Code Your Future students","fork":false,"url":"https://api.github.com/repos/CodeYourFuture/js-exercises","forks_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/forks","keys_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/teams","hooks_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/hooks","issue_events_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/events","assignees_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/tags","blobs_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/languages","stargazers_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/stargazers","contributors_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/contributors","subscribers_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/subscribers","subscription_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/subscription","commits_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/merges","archive_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/downloads","issues_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/labels{/name}","releases_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/releases{/id}","deployments_url":"https://api.github.com/repos/CodeYourFuture/js-exercises/deployments","created_at":"2018-02-13T13:12:58Z","updated_at":"2018-03-01T15:16:59Z","pushed_at":"2018-03-07T13:49:45Z","git_url":"git://github.com/CodeYourFuture/js-exercises.git","ssh_url":"git@github.com:CodeYourFuture/js-exercises.git","clone_url":"https://github.com/CodeYourFuture/js-exercises.git","svn_url":"https://github.com/CodeYourFuture/js-exercises","homepage":null,"size":71,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":23,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12"},"html":{"href":"https://github.com/CodeYourFuture/js-exercises/pull/12"},"issue":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/12"},"comments":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/CodeYourFuture/js-exercises/statuses/33aaee42c28555b164efa7a7b9e2ced4b9f1c5ae"}},"author_association":"NONE"}}
{"actor":{"display_login":"tekul"}}