Say you have
window.something = 123;
var code = 'window.something'
var str = `${code}`
console.log(str)
Naturally that will output window.someting
Is there a way to declare an interpolated String and get the string to be evaluated?
Something like new InterpolatedString('window.something')
and actually get whatever is in there? For the current context?
I know this might be much to ask for, but since the language is interpreted, they could have exposed this but I don't believe they have :/