Skip to main content

eval is evil

Member since May 5, 2010

Recent Blog Comments By eval is evil

  • Javascript Function() Constructor Does Not Create A Closure

    Posted on May 5, 2010 at 5:36 AM

    In my opinion if you are using new Function your missing the power of closures. However if you really need this try function(){eval("...")} var foo = "win"; (function(){ var foo = "fun"; (function(){eval("console.log('eval: ' + foo)")})(); (new Function("console.log('Func: ' + foo)"))(); (f... 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