What is the output of the following?

var array1 = [1,2,3,4,5]

array1.forEach(function(i) {
i = i + 1
})

console.log(array1) // ?

Categories

⚛️ Javascript ⛔️ No computer needed ⛔️ No whiteboarding

Difficulty

🤔 Medium

Last Updated: 1/26/2019, 9:39:14 PM