Skip to main content

Ampersandre

Member since May 6, 2010

Recent Blog Comments By Ampersandre

  • Javascript Function() Constructor Does Not Create A Closure

    Posted on May 6, 2010 at 3:56 AM

    Your function creation still creates a closure. Right before the call to testScope(), assign a different value to the scope variable. It will still print "window" to the console. The problem is just that the creation of the new Function uses the global variable instead of the local variable. I'm no... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel