---
title: "Comment by Jason on \"100 most asked JavaScript Interview Questions and Answers - Part 1\" | Hashnode"
description: "There is at least one more way to empty an array: Use .shift() instead of .pop() ."
url: "https://hashnode.com/posts/100-most-asked-javascript-interview-questions-and-answers-part-1/602de4b4de5647175427f35a/comment/602e0bc3797c7f1cb42b1dad"
---

[Discussion](https://hashnode.com/posts/100-most-asked-javascript-interview-questions-and-answers-part-1/602de4b4de5647175427f35a)

Comment [100 most asked JavaScript Interview Questions and Answers - Part 1](https://hashnode.com/posts/100-most-asked-javascript-interview-questions-and-answers-part-1/602de4b4de5647175427f35a)

[Jason](https://hashnode.com/@jason00111)

[Feb 18, 2021](https://hashnode.com/posts/100-most-asked-javascript-interview-questions-and-answers-part-1/602de4b4de5647175427f35a/comment/602e0bc3797c7f1cb42b1dad)

There is at least one more way to empty an array: Use `.shift()` instead of `.pop()`.
