{"action":"created","issue":{"url":"https://api.github.com/repos/loverajoel/jstips/issues/27","labels_url":"https://api.github.com/repos/loverajoel/jstips/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/loverajoel/jstips/issues/27/comments","events_url":"https://api.github.com/repos/loverajoel/jstips/issues/27/events","html_url":"https://github.com/loverajoel/jstips/issues/27","id":125318027,"number":27,"title":"Tip #06 incorrect code for what it suggests","user":{"login":"volcodc","id":569710,"avatar_url":"https://avatars.githubusercontent.com/u/569710?v=3","gravatar_id":"","url":"https://api.github.com/users/volcodc","html_url":"https://github.com/volcodc","followers_url":"https://api.github.com/users/volcodc/followers","following_url":"https://api.github.com/users/volcodc/following{/other_user}","gists_url":"https://api.github.com/users/volcodc/gists{/gist_id}","starred_url":"https://api.github.com/users/volcodc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volcodc/subscriptions","organizations_url":"https://api.github.com/users/volcodc/orgs","repos_url":"https://api.github.com/users/volcodc/repos","events_url":"https://api.github.com/users/volcodc/events{/privacy}","received_events_url":"https://api.github.com/users/volcodc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/loverajoel/jstips/labels/comments%20about%20tip","name":"comments about tip","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-07T04:08:51Z","updated_at":"2016-01-28T21:24:09Z","closed_at":null,"body":"Tip #06 suggests that it's code returns the first letter capital rather than the whole word.\r\n\r\n*printUpperCase(\"cactus\"); \r\n// => Cactus*\r\n\r\nIdeally, if the end result wanted to look like that, the code should reflect something like this:\r\n\r\n```javascript\r\nfunction printUpperCase(words) {\r\n  var elements = [].concat(words); \r\n  for (var i = 0; i < elements.length; i++) {\r\n  \tvar tmpArr = elements[i].split(''),\r\n  \t\tretVal = tmpArr.shift().toUpperCase() + tmpArr.join('');\r\n    console.log(retVal);\r\n  }\r\n}\r\n```\r\n\r\nJust wanted to assist! Thanks!\r\n-Chris"},"comment":{"url":"https://api.github.com/repos/loverajoel/jstips/issues/comments/176426647","html_url":"https://github.com/loverajoel/jstips/issues/27#issuecomment-176426647","issue_url":"https://api.github.com/repos/loverajoel/jstips/issues/27","id":176426647,"user":{"login":"loverajoel","id":1700100,"avatar_url":"https://avatars.githubusercontent.com/u/1700100?v=3","gravatar_id":"","url":"https://api.github.com/users/loverajoel","html_url":"https://github.com/loverajoel","followers_url":"https://api.github.com/users/loverajoel/followers","following_url":"https://api.github.com/users/loverajoel/following{/other_user}","gists_url":"https://api.github.com/users/loverajoel/gists{/gist_id}","starred_url":"https://api.github.com/users/loverajoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loverajoel/subscriptions","organizations_url":"https://api.github.com/users/loverajoel/orgs","repos_url":"https://api.github.com/users/loverajoel/repos","events_url":"https://api.github.com/users/loverajoel/events{/privacy}","received_events_url":"https://api.github.com/users/loverajoel/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T21:24:09Z","updated_at":"2016-01-28T21:24:09Z","body":"Hey can we close this?"}}