Skip to content

Commit 2fffce3

Browse files
author
beck410
committed
Koan Finished - about_scope.js
1 parent 8e7ac96 commit 2fffce3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

topics/about_scope.js

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

55
test("global variables", function() {
6-
equal(__, thisIsAGlobalVariable, 'is thisIsAGlobalVariable defined in this scope?');
6+
equal(77, thisIsAGlobalVariable, 'is thisIsAGlobalVariable defined in this scope?');
77
});
88

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

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

0 commit comments

Comments
 (0)