Ran into this basic JavaScript scope gotcha today.
Just goes to show, you could be programming in a language for years and still get tripped up by some of the simplest issues.
https://codeberg.org/aral/gists/src/branch/main/javascriptScope.md
#JavaScript #scope #web #dev