---
title: "Discussion on \"Slice() & Splice() Array methods in Javascript.\" | Hashnode"
description: "Discussion on \"Slice() & Splice() Array methods in Javascript.\". slice[startIndex, endIndex)\nSlice method is used to extract the part of array based on the start and end indexes passed as the parameter. It returns the extracted part and does not modify the original array.\n\nThe endIndex is optional, if not given it..."
url: "https://hashnode.com/posts/slice-and-splice-array-methods-in-javascript/619a84c85bb9cc256fc6b049"
---

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

Discussion

# [Slice() & Splice() Array methods in Javascript.](https://blognotes.hashnode.dev/slice-and-splice-array-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

slice\[startIndex, endIndex) Slice method is used to extract the part of array based on the start and end indexes passed as the parameter. It returns the extracted part and does not modify the original array. The endIndex is optional, if not given it...

Nov 21, 2021 · 4 min read · blognotes.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Rahul](https://hashnode.com/@rahulk31)

@rahulk31

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

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
