https://20qticecreammaker.blogspot.com/2023/10/inner-function-cannot-access-outer.html
Inner Function Cannot Access Outer Functions Variable