Frontend
Interviews
.dev
Problems
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?
2 false
3 false
2 true
3 true
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer