building a matrix through use of constructor
<p>This is my code:</p>

<pre><code>var Evalcard =  function(number) {
    if (number == 1) {
        this.name = "Ace";
        this.value = 11;
    }
    else if (number == 11) {
        this.name = "Jack";
        this.value = 10;
    }
    else if (number == 12) {
        this.name = "Queen";
        this.value = 10;
    }
    else if (number == 13) {
        this.name = "King";
        this.value = 10;
    }

    return [this.name,this.value];
}

var Buildmatrix = function(mat,suit) {
    row = [];
    var cardeval = new Evalcard(r);
    for (r = 1;r &lt;= 13;r++) {
        cardeval(r);
        row[r] = [r,cardeval(r)[0],suit,cardeval(r)[1]]
        mat.push(row);
    }

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

<p>Is my use of the constructor here correct? can I call an instance of <code>Evalcard()</code> by placing the arguments next to the new object (in this case <code>var cardeval</code>)?</p>
