<script> var arr = [2, 5, 9, 15, 0, 4]; for (var i = 0; i < arr.length; i++) { if (arr[i] > 3 && arr[i] < 10) document.write(arr[i]+'<br>'); } </script>