There is something I don\'t understand about how eval works. Suppose I have a function foo:
function foo() { console.log(\"test\"); }
A
you would need to call
eval("function foo() { console.log(\"foo\"); };" + " foo();");
in order for this to work;