FrontendInterviews.dev

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?

Select an option and submit your answer.