And scope. Variables declared in the if can be read everywhere, variables declared in the function are limited to that function.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And scope. Variables declared in the if can be read everywhere, variables declared in the function are limited to that function.