---
title: "Discussion on \"Array Week Challenge - Day 2\" | Hashnode"
description: "Discussion on \"Array Week Challenge - Day 2\". Rearranging a few things"
url: "https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd"
---

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

Discussion

# [Array Week Challenge - Day 2](https://blog.barbaralaw.me/huntober-2022-day-9?utm_source=hashnode&utm_medium=feed)

Rearranging a few things

Oct 9, 2022 · 3 min read · blog.barbaralaw.me  
Updated Oct 13, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coding-challenge](https://hashnode.com/tag/coding-challenge)
-   [#huntober](https://hashnode.com/tag/huntober)
-   [#array](https://hashnode.com/tag/array)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

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

@blawblawLaw · Los Angeles, CA

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

LA based software engineer, garden gnome fan, and reader

I'm a Senior UI Developer at a global tech consultancy, working on crafting custom solutions for our client companies. Clients range from nascent start-ups to Fortune 10 companies. I also volunteer as the Community Manager for the community-based FREE online educational program at 100Devs. Its mission is to provide a completely free, accessible, welcoming path to a career as a software engineer. Current interests include Design Systems, Component Libraries, and teaching beginners.

## Responses 3

Markdown supported · ⌘↵ to post

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

[Shah](https://hashnode.com/@SHAHxCODE)

[Oct 10, 2022](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/6343f8d0250857e669effd1a)

Can we expect an element to appear multiple times in the array?

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

[Oct 11, 2022](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/6343f8d0250857e669effd1a#reply-6344b78e6d64be07a724b4c9)

It will only appear once. I've updated the instructions :)

[Khánh Trần Ngọc](https://hashnode.com/@khanhtranngoccva)

[Oct 10, 2022](https://hashnode.com/posts/huntober-2022-day-9/63430b0529558655566c6afd/comment/6343f3e4250857e669effc5c)

I had fun solving your puzzles, Blaw! Thank you so much for making the code challenges! 🚀
