Create Items via ECMA Script / JavaScript with SP.JS (CSOM)
<p>Im trying to create Items via ECMA Script &amp; the client sided object model (CSOM).</p>

<p>Unfortunately I couldnt find an answer yet, can you tell me how to create it?
I want to translate this function to the CSOM world :</p>

<pre><code> function Create_Hyperlink(address, description, comment) {
    var URL = address + " , " + description;
    $().SPServices({
        operation: "UpdateListItems",
        listName: "Hyperlinks",
        batchCmd: "New",
        valuepairs: [["URL", URL], ["Comment", comment]],
            completefunc: function (xData, Status) {
            alert("Created");
            }
    });
 }
</code></pre>

<p>Thanks for your replies :))</p>
