/* As you see, the language supports variable scopes */ let x = 18; let foo = () => { let x = 1; print(x); return x; }; let main = () => { print(x); let x = 2; foo(); print(x); return x; };