{"action":"created","issue":{"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/13934","repository_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp","labels_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/13934/labels{/name}","comments_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/13934/comments","events_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/13934/events","html_url":"https://github.com/freeCodeCamp/freeCodeCamp/issues/13934","id":214393807,"number":13934,"title":"Find the Longest Word in a String","user":{"login":"bikkua","id":16547978,"avatar_url":"https://avatars0.githubusercontent.com/u/16547978?v=3","gravatar_id":"","url":"https://api.github.com/users/bikkua","html_url":"https://github.com/bikkua","followers_url":"https://api.github.com/users/bikkua/followers","following_url":"https://api.github.com/users/bikkua/following{/other_user}","gists_url":"https://api.github.com/users/bikkua/gists{/gist_id}","starred_url":"https://api.github.com/users/bikkua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bikkua/subscriptions","organizations_url":"https://api.github.com/users/bikkua/orgs","repos_url":"https://api.github.com/users/bikkua/repos","events_url":"https://api.github.com/users/bikkua/events{/privacy}","received_events_url":"https://api.github.com/users/bikkua/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-15T13:47:07Z","updated_at":"2017-03-15T14:47:13Z","closed_at":"2017-03-15T14:47:13Z","body":"https://www.freecodecamp.com/challenges/find-the-longest-word-in-a-string#?solution=%0Afunction%20findLongestWord(str)%20%7B%0A%20%20%0A%20%20array%20%3D%20str.split(%22%20%22)%3B%0A%20%20var%20max%3D0%3B%0A%20%20%0A%20%20for(var%20i%3D0%3Bi%3Carray.length%3Bi%2B%2B)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20if(array%5Bi%5D.length%3Emax)%0A%20%20%20%20%20%20%20%20max%3D%20array.length%3B%0A%20%20%20%20%7D%0A%20%20return%20max%3B%0A%20%20%0A%7D%0A%0AfindLongestWord(%22The%20quick%20brown%20fox%20jumped%20over%20the%20lazy%20dog%22)%3B%0A\r\n\r\n\r\nfunction findLongestWord(str) {  \r\n  array = str.split(\" \");\r\n  var max=0;\r\n  \r\n  for(var i=0;i<array.length;i++)\r\n    {\r\n      if(array[i].length>max)\r\n        max= array.length;\r\n    }\r\n  return max;\r\n  \r\n}\r\n\r\nfindLongestWord(\"The quick brown fox jumped over the lazy dog\");\r\n\r\n\r\n\r\nIts failing for all the test cases. Anyone can tell me the problem?\r\n\r\n\r\n![error](https://cloud.githubusercontent.com/assets/16547978/23951448/11d7a4c6-09b4-11e7-8e5a-d29dd0dbba63.png))\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/comments/286764531","html_url":"https://github.com/freeCodeCamp/freeCodeCamp/issues/13934#issuecomment-286764531","issue_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/13934","id":286764531,"user":{"login":"OFFLlNE","id":8721312,"avatar_url":"https://avatars0.githubusercontent.com/u/8721312?v=3","gravatar_id":"","url":"https://api.github.com/users/OFFLlNE","html_url":"https://github.com/OFFLlNE","followers_url":"https://api.github.com/users/OFFLlNE/followers","following_url":"https://api.github.com/users/OFFLlNE/following{/other_user}","gists_url":"https://api.github.com/users/OFFLlNE/gists{/gist_id}","starred_url":"https://api.github.com/users/OFFLlNE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OFFLlNE/subscriptions","organizations_url":"https://api.github.com/users/OFFLlNE/orgs","repos_url":"https://api.github.com/users/OFFLlNE/repos","events_url":"https://api.github.com/users/OFFLlNE/events{/privacy}","received_events_url":"https://api.github.com/users/OFFLlNE/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T14:47:13Z","updated_at":"2017-03-15T14:47:13Z","body":"Thank you for reporting your issue.\r\n\r\nYour code is wrong.\r\nThis is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the \"Help\" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our [full list of official chatrooms](http://forum.freecodecamp.com/t/free-code-camp-official-chat-rooms/19390).\r\nIf you think I'm wrong in closing this issue, please reopen it and add further clarification.\r\n\r\nThank you, and happy coding."}}
{"actor":{"display_login":"OFFLlNE"}}