Pārlūkot izejas kodu

Update retrieval of 0th index

ApisNecros 1 gadu atpakaļ
vecāks
revīzija
9696c4f8ca
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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() {