Use name of object to run a function
<p>I would like to do the following in JavaScript:</p>

<pre><code>var myObject.name = myString;

function newFunction(){myObject.name}
</code></pre>

<p>Is it possible to use a string as the contents of a function?  How would you convert it to be usable?</p>
