数组
<script> var arr = [] for (var i = 0;i <= 9;i++) { arr[i] = i + 1 } console.log(arr) </script>
<script> var arr = [1,22,3,44,5] var new_arr = [] for (var i = 0;i <= arr.length;i++) { if (arr[i] > 10) { new_arr[new_arr.length] = arr[i] } } console.log(new_arr) </script>