Hacker News new | ask | show | jobs
by tellnes 4716 days ago
Eval is evil.

Don't pass a string as first argument to setTimeout.

1 comments

But if you really need eval ( i do sometimes yes ) , use scoped evals with a function constructor.

    var myEval = new Function("my().stuff().to().eval();");

    myEval();