From 8c647c64cf0f97e78120bb31ac683b211daabbcc Mon Sep 17 00:00:00 2001 From: Nitin Hayaran Date: Sun, 12 Feb 2012 10:00:11 +0530 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ad719a8..25186c0 100644 --- a/README.md +++ b/README.md @@ -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);