---
title: "Discussion on \"Array.slice() and Array.splice()\" | Hashnode"
description: "Discussion on \"Array.slice() and Array.splice()\". Array.slice():\nThe array.slice() method returns the selected elements starting at the given start argument and ends at the given optional end argument without including the last element. If you omit the second argument then it selects till the end.\nE..."
url: "https://hashnode.com/posts/arrayslice-and-arraysplice/68935212ee7c06debd3fdf64"
---

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

Discussion

# [Array.slice() and Array.splice()](https://devsagarkumarjha.hashnode.dev/arrayslice-and-arraysplice?utm_source=hashnode&utm_medium=feed)

Array.slice(): The array.slice() method returns the selected elements starting at the given start argument and ends at the given optional end argument without including the last element. If you omit the second argument then it selects till the end. E...

Aug 6, 2025 · 2 min read · devsagarkumarjha.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#array-methods](https://hashnode.com/tag/array-methods)
-   [#splice](https://hashnode.com/tag/splice)
-   [#slice](https://hashnode.com/tag/slice)
-   [#slice-vs-splice](https://hashnode.com/tag/slice-vs-splice)

## Written by

[Sagar Kumar Jha](https://hashnode.com/@devsagarkrjha)

@devsagarkrjha · Delhi, India

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

zenui.dev | Software Developer

Softwares are art and I am an artist

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
