---
title: "Comment by Anthony P. on \"Array Week Challenge - Day 2\" | Hashnode"
description: "This one took me wayyy longer than I&#39;m willing to admit. I&#39;ve been making copies of arrays like a code weenie for so long that I couldn&#39;t remember h"
url: "https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/634a58e97b9ff55063441939"
---

[Discussion](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd)

Comment [Array Week Challenge - Day 2](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd)

[Anthony P.](https://hashnode.com/@anthonyp)

[Oct 15, 2022](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/634a58e97b9ff55063441939)

This one took me wayyy longer than I'm willing to admit. I've been making copies of arrays like a code weenie for so long that I couldn't remember how to mutate an array to solve this challenge 🤫🤦‍♂️. This would've killed me if happened during an interview😂.

Thanks for the challenge!

[Barbara](https://hashnode.com/@blawblawLaw)

[Oct 23, 2022](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/634a58e97b9ff55063441939#reply-63557b8431a9a1e09b693fde)

Great! Avoiding mutation is the right move 99.99% of the time, but always good to remember which methods mutate.
