var fibonacciSequence = [1, 2]

for (var counter = 1; fibonacciSequence[-1] < 20; counter++) {
  console.log(fibonacciSequence[counter])
  fibonacciSequence.push(fibonacciSequence[counter] + fibonacciSequence[counter - 1]);
}

// console.log(fibonacciSequence)
@@ -29,30 +29,61 @@
 2%5D%0A%0A
-for (
 var c
+ounter = 0;%0Avar evenFibonacciC
 ount
-er
  = 
-1; 
+2;%0A%0Awhile (
 fibo
@@ -100,74 +100,117 @@
 nce%5B
--1%5D %3C 20; counter++) %7B%0A  console.log(fibonacciSequence%5Bcounter%5D)%0A 
+fibonacciSequence.length - 1%5D %3C 4000000) %7B%0A  var nextTerm = fibonacciSequence%5BfibonacciSequence.length - 2%5D +
  fib
@@ -227,14 +227,9 @@
 ence
-.push(
+%5B
 fibo
@@ -245,19 +245,23 @@
 ence
-%5Bcounter%5D +
+.length - 1%5D;%0A 
  fib
@@ -278,30 +278,95 @@
 ence
-%5Bcounter - 1%5D);
+.push(nextTerm);%0A  if (nextTerm %25 2 == 0) %7B%0A    evenFibonacciCount += nextTerm;%0A  %7D
 %0A%7D%0A%0A
-// 
 cons
@@ -373,25 +373,29 @@
 ole.log(
-f
+evenF
 ibonacci
 Sequence
@@ -390,13 +390,11 @@
 acci
-Sequence)
+Count);

Complete p2