Jelajahi Sumber

Fix gt and lt operators

Forgot to capitalize the function name for Push.
ApisNecros 1 tahun lalu
induk
melakukan
e6775fbe69
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      starfish.js

+ 2 - 2
starfish.js

@@ -227,13 +227,13 @@ class CodeBox {
                 case "(": {
                     const x = this.stack.Pop();
                     const y = this.stack.Pop();
-                    this.stack.push(y < x ? 1 : 0);
+                    this.stack.Push(y < x ? 1 : 0);
                     break;
                 }
                 case ")": {
                     const x = this.stack.Pop();
                     const y = this.stack.Pop();
-                    this.stack.push(y > x ? 1 : 0);
+                    this.stack.Push(y > x ? 1 : 0);
                     break;
                 }
                 case "=": {