Skip to content

Commit 05e701b

Browse files
3.1: Removed unused value in pop3() operation (#82)
Line no 47
1 parent bea811c commit 05e701b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter03/3.1 - Three in One/threeInOne.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ ThreeInOne.prototype.pop2 = function() {
4444
return answer;
4545
};
4646

47-
ThreeInOne.prototype.pop3 = function(value) {
47+
ThreeInOne.prototype.pop3 = function() {
4848
if (this.isEmpty3()) {
4949
return undefined;
5050
}
5151

52-
return this.container.pop(value);
52+
return this.container.pop();
5353
};
5454

5555
ThreeInOne.prototype.peek1 = function() {

0 commit comments

Comments
 (0)