Filter Out Numbers Less Than 10
Use the
filter method to create a new array that contains only the numbers in arr that are greater than or equal to 10.Premium
JavaScript
Console