Fixed wording on window.foo question to fix issue #7

This commit is contained in:
darcyclarke 2012-06-05 14:20:03 -04:00
parent e3859d7e38
commit c29960b025
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ Question: What value is returned from the above statement?
```
Question: What is the value of window.foo?
**Answer: "bar"**
if intially window.foo was false, undefined or zero else it will retain its value.
only if window.foo was falsey otherwise it will retain its value.
```javascript
var foo = "Hello"; (function() { var bar = " World"; alert(foo + bar); })(); alert(foo + bar);