Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let digits = numbers.filter(function(number) {
return number % 2;
});
console.log(digits);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment