How do I convert a string into an executable line of code in Javascript?
<p>I have the following bit of code</p>

<pre><code>console.log("I am");

var x = "console.log('Alive!')";
</code></pre>

<p>Now I only want to use <code>x</code> to execute the code-string that is assigned to it - I may not even know the value of x for example but simply want to execute it whatever it maybe - is this possible?</p>
