{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7098","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7098/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7098/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7098/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7098","id":134398567,"number":7098,"title":"Smallest Common Multiple: my solution is correct, but your site says it's wrong","user":{"login":"rdquintas","id":3330729,"avatar_url":"https://avatars.githubusercontent.com/u/3330729?v=3","gravatar_id":"","url":"https://api.github.com/users/rdquintas","html_url":"https://github.com/rdquintas","followers_url":"https://api.github.com/users/rdquintas/followers","following_url":"https://api.github.com/users/rdquintas/following{/other_user}","gists_url":"https://api.github.com/users/rdquintas/gists{/gist_id}","starred_url":"https://api.github.com/users/rdquintas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdquintas/subscriptions","organizations_url":"https://api.github.com/users/rdquintas/orgs","repos_url":"https://api.github.com/users/rdquintas/repos","events_url":"https://api.github.com/users/rdquintas/events{/privacy}","received_events_url":"https://api.github.com/users/rdquintas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T21:02:32Z","updated_at":"2016-02-18T00:33:53Z","closed_at":null,"body":"Hi\r\n\r\nI guess this issue is similar to this other one\r\n[#6869](https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6869)\r\n\r\nI have tested my solution on my local machine (I always try to solve them offline first), and even though I pass all the tests on my local machine, when I paste my code into your website, it fails this test **smallestCommons([1, 13]) should return 360360**\r\n\r\nI have no idea why.\r\n:cry: \r\n```\r\n    function smallestCommons(arr) {\r\n        arr.sort();\r\n        var count = 1;\r\n        \r\n        var keepGoing = true;\r\n\r\n        while (keepGoing) {\r\n            count += 1;\r\n            var calcArr = [];\r\n\r\n            for (var i = 1; i <= arr[1]; i++) {\r\n                calcArr.push(count % i);\r\n            }\r\n\r\n            if (checkArray(calcArr)) {\r\n            \tkeepGoing = false;\r\n                // break;\r\n            }\r\n        }\r\n\r\n        console.log(\"count: \" + count);\r\n        return count;\r\n    }\r\n\r\n    function checkArray(arr2) {\r\n        for (var i = 1; i < arr2.length; i++) {\r\n            if (arr2[i - 1] !== arr2[i]) {\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n\r\n    smallestCommons([1, 13]);\r\n```"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/185478590","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/7098#issuecomment-185478590","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/7098","id":185478590,"user":{"login":"Greenheart","id":6125097,"avatar_url":"https://avatars.githubusercontent.com/u/6125097?v=3","gravatar_id":"","url":"https://api.github.com/users/Greenheart","html_url":"https://github.com/Greenheart","followers_url":"https://api.github.com/users/Greenheart/followers","following_url":"https://api.github.com/users/Greenheart/following{/other_user}","gists_url":"https://api.github.com/users/Greenheart/gists{/gist_id}","starred_url":"https://api.github.com/users/Greenheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Greenheart/subscriptions","organizations_url":"https://api.github.com/users/Greenheart/orgs","repos_url":"https://api.github.com/users/Greenheart/repos","events_url":"https://api.github.com/users/Greenheart/events{/privacy}","received_events_url":"https://api.github.com/users/Greenheart/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T00:33:53Z","updated_at":"2016-02-18T00:33:53Z","body":"Your solution is correct, but there is an issue with the *code-linter (checking for syntax errors)* since it finds an `potential infinite loop`.\r\n\r\n**To fix: ** add `//noprotect` to the top of the solution in the FCC-editor.\r\n\r\nIf you have problems like these in the future, consider using the [help-chat rooms](https://gitter.im/freecodecamp/Help) and get someone that help you verify that this is an actual problem before reporting an issue.\r\n\r\nHappy coding! :) "}}