const assert = require('assert');

const powersOfTwo = n => {
  const powerArray = [];

  for (let i = 0; i <= n; i += 1) {
    // console.log(Math.pow(2,i));
    powerArray.push(Math ** (2, i));
  }

  console.log(powerArray);
  return [];
};

powersOfTwo(0);
powersOfTwo(6);
powersOfTwo(8);
const r1 = '[]';

assert(r1);

@@ -48,17 +48,19 @@
 OfTwo = 
-n
+(n)
  =%3E %7B%0A  
@@ -197,16 +197,19 @@
 ;%0A  %7D%0A%0A 
+ //
  console

comment out console.log, fix prettier error