Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pv should be publicValue

  • Loading branch information...
commit 3acbbbbce803c18f4fabb4cc80f230d74f31f532 1 parent dc809f3
@facto facto authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 topics/about_functions_and_closure.js
View
8 topics/about_functions_and_closure.js
@@ -25,12 +25,12 @@ test("self invoking functions", function() {
(function(pv) {
var secretValue = "password";
equals(pv, __, 'what is the value of pv?');
- equals(typeof(secretValue), "__", "is secret value available in this context?");
- equals(typeof(pv), "__", "is public value available in this context?");
+ equals(typeof(secretValue), "__", "is secretValue available in this context?");
+ equals(typeof(publicValue), "__", "is publicValue available in this context?");
})(publicValue);
- equals(typeof(secretValue), "__", "is secret value available in this context?");
- equals(typeof(publicValue), "__", "is public value available in this context?");
+ equals(typeof(secretValue), "__", "is secretValue available in this context?");
+ equals(typeof(publicValue), "__", "is publicValue available in this context?");
});
test("arguments array", function() {
Please sign in to comment.
Something went wrong with that request. Please try again.