Javascript allows you to define variables inside any scope, and it causes confusion. I'm still not sure what "let" and "var" do, and I've read about them multiple times.
https://developer.mozilla.org/en-US/...Statements/let

Anonymous functions may give you this kind of scoping, but the chances of DA building anonymous functions into the product seems low. A couple of times, I've tried to work out if it's possible to create them using the existing FMAC, but I've never spent enough time on this to know one way or the other.