Filter an array!
With the following array of car brands we want to filter out the German brand.
To filter out only the German brand we can do this in the following way. The filter method takes each array item as a new variable called brand. Then we check if the brand origin is equal to 'Germany'. If that returns true the brand variable will be returned as an array item for the new germanBrands constant.
The result of the new germanBrands constant is.
As you can see this makes filtering an array really easy.