using a return value inside a new object in javascript
<p>This is probably too simple, but the object syntax is getting to me.</p>

<p>I have a simple function, that returns a string perfectly fit for using as arguments on an object, so:</p>

<pre><code>function createString() {

// yadda yadda yadda

    return myPerfectstring;
}
</code></pre>

<p>and then there's this object, which should take <code>myPerfectstring</code> as a value like this:</p>

<pre><code>new myPlayer({
        this: "#that",
        css: "#theOther"
    },
        //  insert myPerfectstring here
        // if I log it to the console and copy-paste here, everything works wonders
    , {
        other: "nana",
        things: "yeah",
        around: "yeahyeah"
    });
</code></pre>

<p>i know i can't just throw the function there, neither store it in a variable and insert, so, how do i go about entering that string as if it were really part of the object?</p>
