Miva Interview Question

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