I have the following bit of code
console.log(\"I am\"); var x = \"console.log(\'Alive!\')\";
Now I only want to use x to exec
x
eval() This will convert string to javascript code.
eval("console.log('Alive! Woo!')");