📜  javascript 通过数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:50.127000             🧑  作者: Mango

代码示例3
array = [ 1, 2, 3, 4, 5, 6 ]; 
   //set variable//set the stop count // increment each loop
for (let i = 0; i < array.length ;i++) { 
  
         array[i] //iterate through each index.
   //add the intructions you would like to perform.
    
             // add any method to array[
}