showing results for - "javascript array filter exercises"
Stefania
06 Jan 2017
1function fiveAndGreaterOnly(arr) {
2  return arr.filter(greater => greater>5);
3}
4// test
5console.log(fiveAndGreaterOnly([3, 6, 8, 2])); /// [6, 8]
6
similar questions
queries leading to this page
javascript array filter exercises