I can't find my reference, can somebody tell me if this is correct syntax to define my own objects:
Code:
function object(name, id, val) {
this.name = name;
this.id = id;
this.val = val;
return this;
}

var myob = new object('ob1, 1, 43');
Thx