Taking numbers from a const array and adding +2 to each number | Must Use for Loop

后端 未结 0 2041
轻奢々
轻奢々 2021-02-04 10:47
    const addTwo = [1, 2, 3, 4, 5];
    
    for (let i = addTwo.length; i >= 5; i++) { 
      addTwo = addTwo += 2 //I know this does not work
  
      
    }
    
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题