Skip to content

Commit ac46f9d

Browse files
committed
about_scope
1 parent 2fe1fb2 commit ac46f9d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

topics/about_scope.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module("About Scope (topics/about_scope.js)");
44
thisIsAGlobalVariable = 77;
55

66
test("global variables", function() {
7-
equals(thisIsAGlobalVariable, __, 'is thisIsAGlobalVariable defined in this scope?');
7+
equals(thisIsAGlobalVariable, 77, 'is thisIsAGlobalVariable defined in this scope?');
88
});
99

1010
test("variables declared inside of a function", function() {
@@ -13,10 +13,10 @@ test("variables declared inside of a function", function() {
1313
// this is a self-invoking function. Notice that it calls itself at the end ().
1414
(function() {
1515
var innerVariable = "inner";
16-
equals(outerVariable, __, 'is outerVariable defined in this scope?');
17-
equals(innerVariable, __, 'is innerVariable defined in this scope?');
16+
equals(outerVariable, "outer", 'is outerVariable defined in this scope?');
17+
equals(innerVariable, "inner", 'is innerVariable defined in this scope?');
1818
})();
1919

20-
equals(outerVariable, __, 'is outerVariable defined in this scope?');
20+
equals(outerVariable, "outer", 'is outerVariable defined in this scope?');
2121
equals(typeof(innerVariable), "undefined", 'is innerVariable defined in this scope?');
2222
});

0 commit comments

Comments
 (0)