Skip to content

Commit a76ba56

Browse files
authored
Update test2.js
1 parent 78ae9a7 commit a76ba56

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test2.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ Vector.prototype.times = function(number)
2424
elem.y=this.y*number;
2525
return elem;
2626
}
27-
var vt = new Vector(1,2);
28-
console.log(vt.plus(new Vector(3,4)));
29-
console.log(vt.minus(new Vector(3,4)));
30-
console.log(vt.times(5));
3127
//преобразование в веб-методы
3228
exports.sumOfTwoVectors = function(x1,y1,x2,y2)
3329
{
@@ -79,4 +75,3 @@ exports.compositionOfTwoVectors = function(x1,y1,times)
7975
return vector1.times(times);
8076
}
8177

82-
console.log(exports.compositionOfTwoVectors(1,2,10));

0 commit comments

Comments
 (0)