You are given an array of five numbers called increaseByTwo. Use a for loop to iterate through the array and increase each number by two.
const increaseByTwo = [1,2,3,4,5];
I need the result to be [3,4,5,6,7]
I'm not sure how to add +2 to the array itself, or any operator.
I've currently tried
const increaseByTwo = [1,2,3,4,5];
for (let i=0, i<increaseByTwo.length, i++)
console.log (increaseByTwo + 2)
Results turn out to be but 3 4 5 6 7
on each seperate line, but need it to do be on one [3,4,5,6,7]