You should have filtered out all values from the array that are greater than 5

You should have filtered out all values from the array that are greater than 5
0.0 0

#1

Tell us what’s happening:

Your code so far

var oldArray = [1,2,3,4,5,6,7,8,9,10];

// Only change code below this line.

var newArray = oldArray.filter(function(val) {
  return val > 5 ;
});```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/filter-arrays-with-filter

#2

In future can you please actually tell us what’s happening under the “Tell us what’s happening” line, it’s much easier to give help if you tell us what help you want, we aren’t telepathic (this is not just you).

As it is, the task is asking you to filter out the values over 5, ie get rid of them. You’re doing the opposite, you’re getting rid of everything below 5.


#3

I apologize, for not say what was happening in my code, I understand that we are not telepathic and for that I apologize and I will keep it in mind for the next time. On the other hand, thanks for your help, I hope you find it useful. a greeting