---
title: "Discussion on \"JS Capsules: Array.splice() vs Array.slice()\" | Hashnode"
description: "Discussion on \"JS Capsules: Array.splice() vs Array.slice()\". Introduction\nWhile working with arrays, most developers often find it challenging to differentiate between Array.prototype.splice() and Array.prototype.slice().\nIn this article, we will look at these two array methods, understand how they work, and k..."
url: "https://hashnode.com/posts/js-capsules-arraysplice-vs-arrayslice/61d95b7c3c89a32a868175a9"
---

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

Discussion

# [JS Capsules: Array.splice() vs Array.slice()](https://dpkreativ.hashnode.dev/js-capsules-arraysplice-vs-arrayslice?utm_source=hashnode&utm_medium=feed)

Introduction While working with arrays, most developers often find it challenging to differentiate between Array.prototype.splice() and Array.prototype.slice(). In this article, we will look at these two array methods, understand how they work, and k...

Jan 8, 2022 · 4 min read · dpkreativ.hashnode.dev  
Updated Jul 8, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Divine Orji](https://hashnode.com/@dpkreativ)

@dpkreativ

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

Software Engineer

I am a software engineer passionate about building fast, scalable apps with beautiful user interfaces.

## Responses 3

Markdown supported · ⌘↵ to post

[Jeremiah Lena](https://hashnode.com/@lenajeremy)

[Jan 10, 2022](https://hashnode.com/posts/js-capsules-arraysplice-vs-arrayslice/61d95b7c3c89a32a868175a9/comment/61dbdec2b0c3ca3df9b47e31)

Nice article. Thanks for the explanation 💥💥

[Maaz Ahmed](https://hashnode.com/@Maaz-Code)

[Jan 9, 2022](https://hashnode.com/posts/js-capsules-arraysplice-vs-arrayslice/61d95b7c3c89a32a868175a9/comment/61da81eb9881c433c36b4a8e)

insightful!

[Eman](https://hashnode.com/@eman304)

[Jan 8, 2022](https://hashnode.com/posts/js-capsules-arraysplice-vs-arrayslice/61d95b7c3c89a32a868175a9/comment/61d9db6dcda0d0294b696c8f)

We'll explained!
