Take the 2-minute tour ×  I'm reading this article and there is
a paragraph:  If you ever find yourself needing to explicitly
scope a variable inside a function you can use an anonymous
function to do this. You can actually create an anonymous
function and then execute it straight away and all the variables
inside will be scoped to the anonymous function:   (function() {
var myProperty = "hello world";  alert(typeof(myProperty)); //
undefined  I met with this already but still need some
clarification why should I need to explicitly scope a variable
inside a function when variables are implicitly scoped inside a
function in Javascript.  Could you explain the purpose of this?
thank you  share|improve this question maybe because you don't
want to overwrite the value of a global variable? –  Achshar Sep
13 '11 at 12:49 @Achshar Yes, but I couldn't imagine this
situation. Raynos example opened my eyes. –  xralf Sep 13 '11 at
12:59 add comment  1 Answer  up vote 3 down vote accepted
setTimeout(function()