Browse Source

Update retrieval of 0th index

ApisNecros 1 year ago
parent
commit
9696c4f8ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      2/2_2.js

+ 1 - 1
2/2_2.js

@@ -18,7 +18,7 @@ function CalculateNounPlusVerb(noun, verb, expected) {
 
     const comp = new Computer(freshMemory);
     comp.Run();
-    return comp.stack.Get(0) == expected;
+    return comp.stack.GetAtIndex(0, 1) == expected;
 }
 
 function LoopNounsAndVerbs() {