//if and while works var count = 1; while (count <= 10) { if (count % 2 == 0) { print "even"; } else { print "odd"; } count += 1; }