Chrome Version 43.0.2357.130 (64-bit) on OS X 10.8.5 (because I need working displayLink drivers.)
Clicking the link puts the escaped text into the address bar but nothing loads. Right clicking and using the "go to" (in a new tab) gets the page to load, but the code editor says "unexpected identifier" at line 6.
Cutting and pasting the code block directly from the exercise works fine.
I've been using that tool to test and debug my solutions to later challenges and it really is excellent for understanding the order of execution/evaluation, the changing environment as its modified by the program, the way various pieces of data are created and handled, etc.
Well, now you've got me wondering why it's "weird" but I'm going to leave that door closed for now.
AHAHAHAHA. Silly programmers. That's not "closure!" That's ENCLOSURE!!!!! "Closures" are enclosed functions. The nesting and nested functions, enclosed with their environment in a neat little envelope.
Everything is fine now.
I understand that this is so, having seen it in action. I'm less clear why this is desirable, aside from the ability to re-use the same variable names without changes to one instance affecting another. But maybe that will crystallize with time and better understandings of function factory patterns and the like.
Sounds interesting. And a little scary.
Starting the objects section of the course today, so I'm sure
this will come in handy. Thanks.
OK, that's helpful. At least I'm not on the wrong track in thinking this stuff is all related.
Thank you very much for the reply!