Update README.md
This commit is contained in:
parent
e9059ecf9d
commit
8c647c64cf
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue