関数をコンストラクタにして、インスタンスを作りたいのか?

var A = function(x) {
this.y = x;
}

var aa = new A(3);
var bb = new A('a');

console.log(aa, bb);