javascript-interview-questions icon indicating copy to clipboard operation
javascript-interview-questions copied to clipboard

feat: Add Question 479 - Purpose of the .at() method

Open Gunashekar31742 opened this issue 2 weeks ago • 2 comments

I have added a new question (No. 479) regarding the .at() method (introduced in ES2022).

Changes Made

  • Updated the Table of Contents to include entry 479.
  • Added the question and answer section at the end of the README.
  • Explained how .at() simplifies accessing elements from the end of an array or string using negative integers (replacing the old arr[arr.length - 1] syntax).
  • Included code examples comparing the old vs. new syntax.

This adds value by covering modern JavaScript features often asked about in interviews.

Gunashekar31742 avatar Nov 26 '25 16:11 Gunashekar31742