Hi all! So I have my code working (yay!) but it appears as though it is not executing top-to-bottom as I expect, and I’m not sure why.
Here’s my solution: http://bit.ly/2jWY0Iu
In the middle I have a “sanity check” console log that breaks the two steps in half, but when it runs it is ~actually~ logging as if the .forEach section of the code below it has already run (adding the second letter pair to the sub-array), thus is giving me the final answer.
Why does this happen? Does .forEach have a special flag about how it is handled by the interpreter?
I’ve dug around on the .MDN and I’ve only found that .forEach cannot be chained.