Miva interview question

How would you sort out even numbers from an array using javascript?