FrontendInterviews.dev

616. delete on Array Element

Easy•

Predict the output.

const arr = [1, 2, 3]
delete arr[1]
console.log(arr.length, 1 in arr)

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem