Hacker News new | ask | show | jobs
by pure_simplicity 1576 days ago
The second one will run, because as the file gets executed top down, the second declaration overwrites the first declaration, just like when you reassign a variable.

But yeah that would be a good thing for a linter to catch. I'm not aware if any do.