Update README.md

This commit is contained in:
Nitin Hayaran 2012-02-12 10:00:11 +05:30
parent e9059ecf9d
commit 8c647c64cf
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);