1// The filter() method creates a new array with all elements
2// that pass the test implemented
3
4const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
5
6const result = words.filter(word => word.length > 6);
7
8console.log(result);
9// expected output: Array ["exuberant", "destruction", "present"]
10