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);

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);

comment out console.log, fix prettier error