_:n3efaa1304e1c40789b5714fcca5c550bxb1
<http://schema.org/text>
"Tell us what’s happening:\n\nHi everyone\n\nSo, this is my solution for this functional programming argument. I have used slice() in my function to create a copy of the global array, and then I do the add/ remove operations on it and return it.\n\nIt works and passed the tests, importantly, the test that &hellip;"
<https://forum.freecodecamp.org/t/why-does-this-work-it-shouldnt-functional-programming-refactor-global-variables-out-of-functions/540594>