{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/12084","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/12084/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/12084/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/12084/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/12084","id":196192457,"number":12084,"title":"Bug detected for Repeat a string (Free Code Camp)","user":{"login":"emilyheng","id":23717772,"avatar_url":"https://avatars.githubusercontent.com/u/23717772?v=3","gravatar_id":"","url":"https://api.github.com/users/emilyheng","html_url":"https://github.com/emilyheng","followers_url":"https://api.github.com/users/emilyheng/followers","following_url":"https://api.github.com/users/emilyheng/following{/other_user}","gists_url":"https://api.github.com/users/emilyheng/gists{/gist_id}","starred_url":"https://api.github.com/users/emilyheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilyheng/subscriptions","organizations_url":"https://api.github.com/users/emilyheng/orgs","repos_url":"https://api.github.com/users/emilyheng/repos","events_url":"https://api.github.com/users/emilyheng/events{/privacy}","received_events_url":"https://api.github.com/users/emilyheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-17T03:09:18Z","updated_at":"2016-12-17T04:38:15Z","closed_at":null,"body":"\r\n<img width=\"1248\" alt=\"screen shot 2016-12-17 at 11 07 11 am\" src=\"https://cloud.githubusercontent.com/assets/23717772/21283994/1c091714-c449-11e6-89cd-a3888cb5e721.png\">\r\nChallenge [Repeat a string repeat a string](https://www.freecodecamp.com/challenges/repeat-a-string-repeat-a-string#?solution=%0Afunction%20repeatStringNumTimes(str%2C%20num)%20%7B%0A%20%20%0Aif%20(num%3C0)%7B%0A%20%20return%20%22%22%3B%0A%7D%20return%20str.repeat(num)%3B%0A%0A%7D%0A%0ArepeatStringNumTimes(%22abc%22%2C%203)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nSee attached picture- it says my repeat function is undefined when it should work. I tried refreshing my page, still got the same problem. I asked someone on Gitter and they said my code works on their page.\r\n\r\nMy code:\r\n```javascript\r\n\r\nfunction repeatStringNumTimes(str, num) {\r\n  \r\nif (num<0){\r\n  return \"\";\r\n} return str.repeat(num);\r\n\r\n}\r\n\r\nrepeatStringNumTimes(\"abc\", 3);\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/267742986","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/12084#issuecomment-267742986","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/12084","id":267742986,"user":{"login":"erictleung","id":2754821,"avatar_url":"https://avatars.githubusercontent.com/u/2754821?v=3","gravatar_id":"","url":"https://api.github.com/users/erictleung","html_url":"https://github.com/erictleung","followers_url":"https://api.github.com/users/erictleung/followers","following_url":"https://api.github.com/users/erictleung/following{/other_user}","gists_url":"https://api.github.com/users/erictleung/gists{/gist_id}","starred_url":"https://api.github.com/users/erictleung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictleung/subscriptions","organizations_url":"https://api.github.com/users/erictleung/orgs","repos_url":"https://api.github.com/users/erictleung/repos","events_url":"https://api.github.com/users/erictleung/events{/privacy}","received_events_url":"https://api.github.com/users/erictleung/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T04:38:15Z","updated_at":"2016-12-17T04:38:15Z","body":"@emilyheng thanks for the issue. Yes, your code passes for me too. Can you confirm what browser and version you're on? The automated user agent generated from your issue says you're using Safari version 8.0.8. According to MDN, the `.repeat()` method is only available on Safari version 9. So your issue might be that you need to use a compatible browser.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2754821/21284418/51822afe-c3cf-11e6-929d-cd7909e72716.png)\r\n\r\nSource: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat"}}
{"actor":{"display_login":"erictleung"}}