Skip to content

Commit df1289d

Browse files
authored
Merge pull request mbeaudru#31 from loliconer/master
'block scoped' should be 'function scoped'
2 parents 47367af + 4a1e993 commit df1289d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The [*scope*](#scope_def) of a variable roughly means "where is this variable av
154154

155155
##### var
156156

157-
```var``` declared variables are *function scoped*, meaning that when a variable is created in a function, everything in that function can access that variable. Conversely, a *block scoped* variable created in a function can't be accessed outside this function.
157+
```var``` declared variables are *function scoped*, meaning that when a variable is created in a function, everything in that function can access that variable. Besides, a *function scoped* variable created in a function can't be accessed outside this function.
158158

159159
I recommend you to picture it as if an *X scoped* variable meant that this variable was a property of X.
160160

0 commit comments

Comments
 (0)