Hello! Not 100% certain, but I believe it was to try and differentiate between local variables and variables attached to a function via closure.

The course is being redone, so this may be re-worked; I think in this case it's possible to allow both solutions in the newer course (it is in this one too, but at this point since it's being redone, better to deal with any confusion or discrepancies here in the forum), or to come up with a less contrived way to distinguish between local variables and variables captured via closure. **

** e.g., Well, this is a bit too complex I think, but let's say you needed to display the locations sorted by name. Way easier to sort an array of names than to modify an existing string, so have zones being a variable captured via closure, and then there's a more genuine need for list. And there is a sort method which although a bit inefficient in this case could be easily introduced and used. Anyway, something like that, but probably a bit less complicated. Always a bit tough to come up with non-contrived, realistic examples that are simple

I faced an error on the last part of the challenge. I appended the list variable at the end as required but it didn't accept my answer as correct. I bought the answer for points only to find out that it was exactly the same as what I had written. Is there a place where I can file this or shall I start a thread in this very forum?

Hello! Not 100% certain, but I believe it was to try and differentiate between local variables and variables attached to a function via closure. The course is being redone, so this may be re-worked; I think in this case it's possible to allow both...

hi, apologies if this is covered already in the thread. I would like to copy and run this code outside of the program to be able to play with the code, understand it better, see the results execute etc... is there a an outline or a brief description of how to do this? I followed instructions and ran a simple print ln on the same code to make sure i set up, saved etc.. correctly but im getting all of these errors when i try to copy paste the code from the exercises. are they directly translatable? Thanks,

Thank you, as a total novice. is there some literature on site that gives some high level background or descriptions on how some of these languages interact/co exist. I am currently working through the html/css and js paths. i understand websites run js applications thus the two seem obvious to learn in parallel. as i work through the challenges, i learn code and structure etc. but its such an all inclusive environment that i'm having trouble seeing how this culminates with physically building something from scratch. am i just getting ahead of myself and that is included in later courses? Or are there some courses or some supplemental material on the site that goes more into the "nuts and bolts" of all this? hope that question makes sense. Thanks,

Your code in the post has non-ascii characters in place of some of the double-quotes. Replace those with ".

The issue you noticed is due to list being overwritten each time. The solution leads you toward recreating the list from scratch based on zones, but the following, where I make list a variable in the inner-function’s closure works too:

It is returning two separate function objects, and calling them once each. Your other example isn't quite analogous, as it has an extra call, but do note because you used warned to store on function, you're calling the same once twice.