Functions vs let

They say don’t calculate in global scope, do it inside functions instead. Is let good enough for this purpose, so I don’t need to define and call a function?

1 Like
2 Likes