News for hackers. Stuff that matters.
Re:A Tricky JavaScript Interview Question Asked by Google an... by hoodoof on Monday October 09, 2017 @09:31PM (#15438665)
If you want to know if someone understands scope then you should ask about scope, not conceal a bug that relates to the topic you are interested in.

"Tricky" is the correct word here and tricky interview questions are stupid.

Re:A Tricky JavaScript Interview Question Asked by Google an... by balefrost on Tuesday October 10, 2017 @08:13AM (#15441119)
Debugging is a skill that will definitely be used on the job, and this is a stripped-down example of something that you'll definitely encounter while working in JavaScript (or any language with mutable closures).

How would you ask about this issue in interviews?

Re:A Tricky JavaScript Interview Question Asked by Google an... by sterex on Thursday October 12, 2017 @03:29PM (#15460602)
This isn't really a tricky question who understands how JS works. If a person has not experienced this situation of a function call (closures) within a loop, I'd suspect he has not much practical experience.

It's much more difficult to understand this theoretically than when encounter this while you code.