Frontend
Interviews
.dev
Problems
694. Array.at Negative Index
Easy
•
...
Predict the output.
const
a
=
[
10
,
20
,
30
]
console
.
log
(
a
.
at
(
-
1
)
,
a
[
-
1
]
)
What is printed in the console?
30 undefined
undefined 30
30 30
undefined undefined
Submit Answer
Reveal Answer
Select an option and submit your answer.