How do JavaScript’s global variables work? | Dark Hacker News