A
Archos
function Base(x, y) { this._zero=0,0; this.x=x; this.y=y; }
I want to create an object of two ways:
+ Passing values
var b = new Base(2, 3)
(This way works)
+ Using the values that are in '_zero'. For that example, 0 should be
passed to 'x', and another 0 to 'y'.
I want to create an object of two ways:
+ Passing values
var b = new Base(2, 3)
(This way works)
+ Using the values that are in '_zero'. For that example, 0 should be
passed to 'x', and another 0 to 'y'.