How would I iterate through an array and multiply that number by 10 if it’s greater than 5? This is what I have so far. I’m assuming my condition is faulty somehow
const timesTenIfOverFive = [23, 9, 11, 2, 10, 6];
for (let i = 0; i >= 5; i++) {
i++
}
console.log(timesTenIfOverFive)
I’ve tried
+=10
i*=10
(i = timesTenIfOverFive * 10)
(timesTenIfOverFive === i * 10)
(timesTenIfOverFive *= 10)
the answer should be 230, 90, 110, 20, 10, 60