---
title: "Discussion on \"New array method Array.prototype.at() in JavaScript\" | Hashnode"
description: "Discussion on \"New array method Array.prototype.at() in JavaScript\". The Old way of accessing elements in an array\nThe usual way to access an element from an array is like this\nlet arr = [1,2,3,4,5]\nlet num = arr[1]\nnum  //2\n\nWith this method, we cannot access the elements with the negative Index like\nlet arr = [1,2,3..."
url: "https://hashnode.com/posts/new-array-method-arrayprototypeat-in-javascript/60379bbcb1cf92586880c988"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [New array method Array.prototype.at() in JavaScript](https://maniteja19.hashnode.dev/new-array-method-arrayprototypeat-in-javascript?utm_source=hashnode&utm_medium=feed)

The Old way of accessing elements in an array The usual way to access an element from an array is like this let arr = \[1,2,3,4,5\] let num = arr\[1\] num //2 With this method, we cannot access the elements with the negative Index like let arr = \[1,2,3...

Feb 25, 2021 · 2 min read · maniteja19.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#array](https://hashnode.com/tag/array)
-   [#arrays](https://hashnode.com/tag/arrays)

## Written by

[Srimaniteja Chinnam](https://hashnode.com/@Maniteja)

@Maniteja · Chennai,India

  
[View profile](https://hashnode.com/@Maniteja)

Front-end developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
