#!/usr/bin/env js var x = [5,3,2,8,32,14,89]; for (let i in x){ if (Number.isInteger(x[i]/2)){ print(x[i]); } }