---
title: "Discussion on \"Slice and Splice in JavaScript.\" | Hashnode"
description: "Discussion on \"Slice and Splice in JavaScript.\". In this article we will learn the difference between slice() and splice() methods in JavaScript.\nslice()\nThe slice() method returns a part of the array. It does not affect the original array. Instead it creates a shallow copy of the array.\nSyntax:\nsl..."
url: "https://hashnode.com/posts/slice-and-splice-in-javascript/641f3945087d375bbbc169d9"
---

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

Discussion

# [Slice and Splice in JavaScript.](https://venkybellara.io/slice-and-splice-in-javascript?utm_source=hashnode&utm_medium=feed)

In this article we will learn the difference between slice() and splice() methods in JavaScript. slice() The slice() method returns a part of the array. It does not affect the original array. Instead it creates a shallow copy of the array. Syntax: sl...

Mar 25, 2023 · 3 min read · venkybellara.io  
Updated Mar 27, 2023  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#interview](https://hashnode.com/tag/interview)
-   [#coding](https://hashnode.com/tag/coding)
-   [#technical-writing-1](https://hashnode.com/tag/technical-writing-1)

## Written by

[Venkatesh K](https://hashnode.com/@venky17)

@venky17 · Bengaluru, India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
