{"action":"closed","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6871","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6871/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6871/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6871/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6871","id":132815330,"number":6871,"title":"\"Filter Arrays with filter\" description needs clarification","user":{"login":"jcubed22","id":12851185,"avatar_url":"https://avatars.githubusercontent.com/u/12851185?v=3","gravatar_id":"","url":"https://api.github.com/users/jcubed22","html_url":"https://github.com/jcubed22","followers_url":"https://api.github.com/users/jcubed22/followers","following_url":"https://api.github.com/users/jcubed22/following{/other_user}","gists_url":"https://api.github.com/users/jcubed22/gists{/gist_id}","starred_url":"https://api.github.com/users/jcubed22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcubed22/subscriptions","organizations_url":"https://api.github.com/users/jcubed22/orgs","repos_url":"https://api.github.com/users/jcubed22/repos","events_url":"https://api.github.com/users/jcubed22/events{/privacy}","received_events_url":"https://api.github.com/users/jcubed22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-10T20:55:29Z","updated_at":"2016-02-11T19:38:15Z","closed_at":"2016-02-11T19:38:15Z","body":"Challenge [Filter Arrays with filter](http://www.freecodecamp.com/challenges/filter-arrays-with-filter#?solution=var%20oldArray%20%3D%20%5B1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%5D%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0Avar%20newArray%20%3D%20oldArray.filter(function(val)%20%7B%0A%20%20return%20val%20%3C%3D%205%3B%0A%7D)%3B%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nMy code:\r\n```javascript\r\nvar oldArray = [1,2,3,4,5,6,7,8,9,10];\r\n\r\n// Only change code below this line.\r\n\r\nvar newArray = oldArray.filter(function(val) {\r\n  return val <= 5;\r\n});\r\n\r\n```\r\nI think it just needs more clarification on exactly what you mean by \"filtering out,\" or what the end result should be.  To me, when you're talking about creating a new array with the .filter() method, it sounds like the items that end up in that new array are the items that are \"filtered out.\"  How the filter works itself makes sense (as I was able to easily get the result I THOUGHT I was looking for, i.e. `newArray = [6, 7, 8, 9, 10]`) but I think your wording (i.e. which items are \"kept\" and which items are \"filtered out\") is confusing.     "}}