I want to create a class that would inherit everything from Array class but has its own constructor.
The idea is something like this:
function Array2(value)
{
this.push(value*value);
};
Array2.prototype = new Array();
Array2(4);
Obviously this doesn't work because "this.push" doesn't work, because Array2 is not yet based on Array.
this.pushdoesn't work?