Filter Arrays with filter

Tell us what’s happening:

The console log filters in deed all number greater than five giving me the next result:var oldArray = [6,7,8,9,10];

// Only change code below this line.

var newArray = oldArray.filter(function(val){
return val>5;

});
Why does not pass the test then?

// Only change code below this line.

var newArray = oldArray.filter(function(val){
return val>5;

});

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 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

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

Use filter to create a new array with all the values from oldArray which are less than 6.

thanks i hust made it i had to write <6 not >5