fork download
  1. var Point = (function () {
  2. function Point(x,y){
  3. this.x = (typeof x !=='undefined') ? x :0;
  4. this.y = (typeof y !=='undefined') ? y :0;
  5. }
  6. Point.prototype.clone = function () {
  7. return new Point(this.x, this.y);
  8. }
  9. };
Success #stdin #stdout 0.03s 25612KB
stdin
Standard input is empty
stdout
var Point = (function () {
function Point(x,y){
	this.x = (typeof x !=='undefined') ? x :0;
	this.y = (typeof y !=='undefined') ? y :0;
	}
	Point.prototype.clone = function () {
	return new Point(this.x, this.y);
	}
	};