Javascript - filter all even numbers from an array

preview_player
Показать описание
In this video, we get all of the even numbers from an array by using the filter() method. The filter() method or filtering an array allows us to filter out all of the elements of an array that pass the test provided by the callback function.

Please post your favorite way or a better way to solve this problem - there is almost always a better way!
Рекомендации по теме
Комментарии
Автор

how do we code this if using a ternary operator

paulinedonor