Created
November 28, 2018 04:50
-
-
Save simpluslabs/64163ffdfbfaeb89c6633143790c64fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
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