Variables a and b are blocked scope. They do not exist outside the if condition. If we try to use them then it would be an error as those variables are undeclared in that scope.

For useful and amazing frontend and programming tutorials: https://bit.ly/devtools-yt