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 whiteboardingDifficulty
var array1 = [1,2,3,4,5]
array1.forEach(function(i) {
i = i + 1
})
console.log(array1) // ?
Categories
⚛️ Javascript ⛔️ No computer needed ⛔️ No whiteboardingDifficulty
🤔 Medium