My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Barbara

5 comments

Khánh Trần Ngọc
Khánh Trần Ngọc
Oct 10, 2022

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

1
·
Shah
Shah
Oct 10, 2022

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

1
·
·1 reply
Barbara
Barbara
Author
·Oct 11, 2022

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

·
Anthony P.
Anthony P.
Oct 15, 2022

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!

1
·
·1 reply
Barbara
Barbara
Author
·Oct 23, 2022

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

·