Hm, but it seems to be a runtime error. Is there a transpiler or other tool that will give you static errors if you try to set an out-of-scope variable?
Yes, it's still javascript.
> Is there a transpiler or other tool that will give you static errors if you try to set an out-of-scope variable?
Elm and Fay likely do.