Merge pull request #3 from nitinhayaran/master

Pulled in an addition to an answer (for the record, it was not "incorrect")
This commit is contained in:
Darcy Clarke 2012-02-12 23:32:45 -08:00
commit 4fe605ff54
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +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.
```javascript
var foo = "Hello"; (function() { var bar = " World"; alert(foo + bar); })(); alert(foo + bar);