Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
({
testEvalLocal : function(component, event, helper)
{
console.log('inside testEvalLocal');
window.foo = 1;
function bar() {
var foo = 2;
return eval("foo");
}
var val = bar();
console.log('value-local-'+val);
console.log('value-global-'+foo);
return val;
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.