Dynamically generating a function name based on a variable <p>What I want is to create a function whose name will come from the content of one of my variables.</p> <p>Example :</p> <pre><code>var myFunctionName = "tryAgain";` [tryAgain] | | | function myFunctionName() { alert('Try Again !'); }; </code></pre>