the Question is: Call the .filter()
method on randomNumbers
to return values that are less than 250
. Save them to a new array called smallNumbers
, declared with const
.
This is my version, but my two problems are, I can’t call the Function without a Syntax Error… and even if I did call the Function and manage to filter the numbers, how do I get them to go into a new array called small numbers again?
const randomNumbers = [375, 200, 3.14, 7, 13, 852];
// Call .filter() on randomNumbers below
const filteredNumbs = numbers.filter(randomNumbers(number)
{
return number < 250;
})