Domanda di colloquio di Miva

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