Scope of var and let

Bhaiya, can you please explain to me more about the scope. I didn’t get the difference between function scope and block scope

@devanshagarwalla give it a read, I am sure this article will be able to clear most of your doubts, if anything still persists ask here in the same thread
https://medium.com/edge-coders/function-scopes-and-block-scopes-in-javascript-25bbd7f293d7#:~:text=var%20vs.&text=A%20variable%20declared%20with%20var,accessed%20outside%20that%20function%20scope.&text=Variables%20declared%20with%20let%20inside,loop%20index%20variable%20scope%20problem.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.