How to get the value from a function
<p>How do I get a value from a function inserted into my HTML.</p>

<p>I have tried this:</p>

<pre><code>function testReturn(value) {    
    var ReturnValue = value; 
    return ReturnValue;  
}

html = "&lt;div&gt;' + testReturn(2) + ' &lt;/div&gt;";
</code></pre>

<p>I get an error saying <code>Undefined</code></p>
