{"action":"created","issue":{"url":"https://api.github.com/repos/codingforeveryone/js/issues/104","repository_url":"https://api.github.com/repos/codingforeveryone/js","labels_url":"https://api.github.com/repos/codingforeveryone/js/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/codingforeveryone/js/issues/104/comments","events_url":"https://api.github.com/repos/codingforeveryone/js/issues/104/events","html_url":"https://github.com/codingforeveryone/js/issues/104","id":140388389,"number":104,"title":"New member 26 Spoonerisms","user":{"login":"webtechalex","id":12125004,"avatar_url":"https://avatars.githubusercontent.com/u/12125004?v=3","gravatar_id":"","url":"https://api.github.com/users/webtechalex","html_url":"https://github.com/webtechalex","followers_url":"https://api.github.com/users/webtechalex/followers","following_url":"https://api.github.com/users/webtechalex/following{/other_user}","gists_url":"https://api.github.com/users/webtechalex/gists{/gist_id}","starred_url":"https://api.github.com/users/webtechalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webtechalex/subscriptions","organizations_url":"https://api.github.com/users/webtechalex/orgs","repos_url":"https://api.github.com/users/webtechalex/repos","events_url":"https://api.github.com/users/webtechalex/events{/privacy}","received_events_url":"https://api.github.com/users/webtechalex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-12T14:31:59Z","updated_at":"2016-03-12T21:58:38Z","closed_at":null,"body":"A spoonerism is a spoken phrase in which the first letters of two of the words are swapped around, often with amusing results.\r\n\r\nThis issue is taken from my very first [Codewars Kata](http://www.codewars.com/kata/56b8903933dbe5831e000c76)\r\n\r\nIn its most basic form a spoonerism is a two word phrase in which only the first letters of each word are swapped:\r\n\r\n```javascript\r\n\"not picking\" --> \"pot nicking\"\r\n```\r\n\r\nYour task is to create a function that takes a string of only two words, separated by a space and returns a spoonerism of those words in a string, as in the above example.\r\n\r\nNOTE: Spoonerisms can be more complex. For example, three-word phrases in which the first letters of the first and last words are swapped: ```\"pack of lies\" --> \"lack of pies\"``` or more than one letter from a word is swapped: ```\"flat battery --> \"bat flattery\"``` You are NOT expected to account for these, or any other linguistic nuances involved in spoonerisms."},"comment":{"url":"https://api.github.com/repos/codingforeveryone/js/issues/comments/195815805","html_url":"https://github.com/codingforeveryone/js/issues/104#issuecomment-195815805","issue_url":"https://api.github.com/repos/codingforeveryone/js/issues/104","id":195815805,"user":{"login":"Janechester","id":16329941,"avatar_url":"https://avatars.githubusercontent.com/u/16329941?v=3","gravatar_id":"","url":"https://api.github.com/users/Janechester","html_url":"https://github.com/Janechester","followers_url":"https://api.github.com/users/Janechester/followers","following_url":"https://api.github.com/users/Janechester/following{/other_user}","gists_url":"https://api.github.com/users/Janechester/gists{/gist_id}","starred_url":"https://api.github.com/users/Janechester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janechester/subscriptions","organizations_url":"https://api.github.com/users/Janechester/orgs","repos_url":"https://api.github.com/users/Janechester/repos","events_url":"https://api.github.com/users/Janechester/events{/privacy}","received_events_url":"https://api.github.com/users/Janechester/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T21:58:38Z","updated_at":"2016-03-12T21:58:38Z","body":"Hey Alex,\r\n\r\nHad an attempt at this one but got a little stuck when it came to removing the first letter from the original string. \r\n\r\n`function spoon1(word1, word2){\r\nreturn word1.slice(0,1) + word2 +  word2.slice(0,1) + word1;\r\n}`\r\n\r\nwhich would return:\r\n`spoon(\"Jane\", \"Chester\");\r\n\"JChester CJane\"`\r\n\r\nNot quite ideal! \r\n\r\nLet me know what your suggestions might be on how to fix this one up...\r\n\r\n\r\n"}}