{"action":"created","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/1861","repository_url":"https://api.github.com/repos/nodeschool/discussions","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/1861/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/1861/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/1861/events","html_url":"https://github.com/nodeschool/discussions/issues/1861","id":173902090,"number":1861,"title":"[JavaScripting]  ## ARRAY FILTERING (Exercise 12 of 19)  ","user":{"login":"KyleFlemington","id":20758659,"avatar_url":"https://avatars.githubusercontent.com/u/20758659?v=3","gravatar_id":"","url":"https://api.github.com/users/KyleFlemington","html_url":"https://github.com/KyleFlemington","followers_url":"https://api.github.com/users/KyleFlemington/followers","following_url":"https://api.github.com/users/KyleFlemington/following{/other_user}","gists_url":"https://api.github.com/users/KyleFlemington/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleFlemington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleFlemington/subscriptions","organizations_url":"https://api.github.com/users/KyleFlemington/orgs","repos_url":"https://api.github.com/users/KyleFlemington/repos","events_url":"https://api.github.com/users/KyleFlemington/events{/privacy}","received_events_url":"https://api.github.com/users/KyleFlemington/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodeschool/discussions/labels/javascripting","name":"javascripting","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-30T00:15:13Z","updated_at":"2016-09-11T01:20:30Z","closed_at":null,"body":"## The challenge:     \r\n  Create a file named array-filtering.js.  \r\n  In that file, define a variable named numbers that references this array: \r\n     [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];  \r\n  Like above, define a variable named filtered that references the result of  \r\n  numbers.filter().  \r\n  The function that you pass to the .filter() method will look something  \r\n  like this:  \r\n     function evenNumbers (number) {  \r\n       return number % 2 === 0;  \r\n     }  \r\n  Use console.log() to print the filtered array to the terminal.  \r\n  Check to see if your program is correct by running this command: \r\n     javascripting verify array-filtering.js  \r\n-------------------\r\n\r\nvar numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\r\nvar filtered = numbers.filter(function(evenNumbers(numbers) {\r\n  return number % 2 ==== 0;\r\n};\r\nconsole.log(filtered);\r\n\r\n-------\r\nWhy does this code fail?\r\n\r\nThank you,\r\nKyle"},"comment":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/comments/246155701","html_url":"https://github.com/nodeschool/discussions/issues/1861#issuecomment-246155701","issue_url":"https://api.github.com/repos/nodeschool/discussions/issues/1861","id":246155701,"user":{"login":"hackemateninja","id":10722724,"avatar_url":"https://avatars.githubusercontent.com/u/10722724?v=3","gravatar_id":"","url":"https://api.github.com/users/hackemateninja","html_url":"https://github.com/hackemateninja","followers_url":"https://api.github.com/users/hackemateninja/followers","following_url":"https://api.github.com/users/hackemateninja/following{/other_user}","gists_url":"https://api.github.com/users/hackemateninja/gists{/gist_id}","starred_url":"https://api.github.com/users/hackemateninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackemateninja/subscriptions","organizations_url":"https://api.github.com/users/hackemateninja/orgs","repos_url":"https://api.github.com/users/hackemateninja/repos","events_url":"https://api.github.com/users/hackemateninja/events{/privacy}","received_events_url":"https://api.github.com/users/hackemateninja/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T01:20:30Z","updated_at":"2016-09-11T01:20:30Z","body":"var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\r\nvar filtered = numbers.filter(function EvenNumbers(number) {\r\n  return number % 2 === 0;\r\n});\r\nconsole.log(filtered);"}}
{"actor":{"display_login":"hackemateninja"}}