---
title: "Discussion on \"Ways to Empty an Array in JavaScript and the Consequences\" | Hashnode"
description: "Discussion on \"Ways to Empty an Array in JavaScript and the Consequences\". As it is famously quoted,\n\nThe only way you can stay on top is to remember to touch the bottom and get back to basics.\n\nHere is one topic from JavaScript's basic concepts. It is about, Ways to Empty an Array. But wait, is that all? No, there is more ..."
url: "https://hashnode.com/posts/ways-to-empty-an-array-in-javascript-and-the-consequences/5d00d91141a9ff5751bafc9c"
---

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

Discussion

# [Ways to Empty an Array in JavaScript and the Consequences](https://blog.greenroots.info/ways-to-empty-an-array-in-javascript-and-the-consequences?utm_source=hashnode&utm_medium=feed)

As it is famously quoted, The only way you can stay on top is to remember to touch the bottom and get back to basics. Here is one topic from JavaScript's basic concepts. It is about, Ways to Empty an Array. But wait, is that all? No, there is more ...

Jun 12, 2019 · 7 min read · blog.greenroots.info  
Updated Sep 30, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#interview](https://hashnode.com/tag/interview)
-   [#programming](https://hashnode.com/tag/programming)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 1

Markdown supported · ⌘↵ to post

[Kritika Pattalam Bharathkumar](https://hashnode.com/@kritika-pattalam)

[Jul 20, 2021](https://hashnode.com/posts/ways-to-empty-an-array-in-javascript-and-the-consequences/5d00d91141a9ff5751bafc9c/comment/60f6b11808a35e79f1fd2188)

This is an awesome article. Thanks. There can be many ways to solve a problem, but knowing the consequences helps in using the right one and during debugging.
