---
title: "Comment by Kritika Pattalam Bharathkumar on \"Ways to Empty an Array in JavaScript and the Consequences\" | Hashnode"
description: "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."
url: "https://hashnode.com/posts/ways-to-empty-an-array-in-javascript-and-the-consequences/5d00d91141a9ff5751bafc9c/comment/60f6b11808a35e79f1fd2188"
---

[Discussion](https://hashnode.com/posts/ways-to-empty-an-array-in-javascript-and-the-consequences/5d00d91141a9ff5751bafc9c)

Comment [Ways to Empty an Array in JavaScript and the Consequences](https://hashnode.com/posts/ways-to-empty-an-array-in-javascript-and-the-consequences/5d00d91141a9ff5751bafc9c)

[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.
