A question about scope which I couldn't find online.
If you would have a piece of code like:
Function foo(myVar) {
return myVar + 1
}
Would myVar be bounded to the scope of foo?
Thank you for your time.
Edit:
this is different from a question about scopes of variables in arguments because I wasn't sure if that would apply to arguments, since they weren't stated with var
before them.