I’ve looked for solutions, but couldn’t find any that work.
I have a variable called onlyVideo.
onlyVideo
\"onlyVideo\" the string gets passe
\"onlyVideo\"
var myString = "echoHello"; window[myString] = function() { alert("Hello!"); } echoHello();
Say no to the evil eval. Example here: https://jsfiddle.net/Shaz/WmA8t/