var p =new point(2,3)
point.prototype.r = function() {
return Math.sqrt(
this.x * this.x + this.y * this.y
);
}
//prototype 属性使您有能力向对象添加属性和方法。
function mm()
{
alert("you have finished");
// document.write(book.topic);
// document.write(book[fat]);
// document.write(primes[primes.length-1]);
// document.write(points[1].x) ;
// document.write(data.trial1[1][1]);
// document.write(square(5));
document.write(p.r());
}