Skip to content

Commit 8539611

Browse files
authored
Fix three typos
1 parent 3e3c84c commit 8539611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

topics/about_functions_and_closure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module("About Functions And Closure (topics/about_functions_and_closure.js)");
33
test("defining functions directly", function() {
44
var result = "a";
55
function changeResult() {
6-
// the ability to access a variables defined in the same scope as the function is known as 'closure'
6+
// the ability to access variables defined in the same scope as the function is known as 'closure'
77
result = "b";
88
};
99
changeResult();
@@ -52,9 +52,9 @@ test("using call to invoke function",function(){
5252
};
5353

5454
//another way to invoke a function is to use the call function which allows
55-
//you to set the callers "this" context. Call can take any number of arguments:
55+
//you to set the caller's "this" context. Call can take any number of arguments:
5656
//the first one is always the context that this should be set to in the called
57-
//function, and the arguments to be sent to the function,multiple arguments are separated by commas.
57+
//function, and the arguments to be sent to the function, multiple arguments are separated by commas.
5858
var result = invokee.call("I am this!", "Where did it come from?");
5959

6060
equal(__, result, "what will the value of invokee's this be?");

0 commit comments

Comments
 (0)