5 ms·
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 vari
by pure_simplicity 5y 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.