Skip to content

Instantly share code, notes, and snippets.

View zhoufenfens's full-sized avatar
:bowtie:
i am working

zhou zhoufenfens

:bowtie:
i am working
View GitHub Profile
function Polygon(sides){
this.sides = sides;
this.setSides = function(s) {this.sides=s;}
};
function Tri(sides){
Polygon.apply(this,[sides]);
}
var tri=new Tri(4);
console.log(tri.sides);