Get all possible combinations and permutations for 8-bit binary

JavaScript

function possible(e, n, t, r, W) {
  if (0 === e.length) {
    return [];
  }
  if (1 === e.length) {
    return e[0];
  }
  n = [], t = possible(e.slice(1));
  for (r in t) {
    for (W = 0; W < e[0].length; W++) {
      n.push(e[0][W] + t[r]);
    }
  }
  return n;
}

alert(possible([ [ "1", "0" ], [ "1", "0" ], [ "1", "0" ], [ "1", "0" ], [ "1", "0" ], [ "1", "0" ], [ "1", "0" ], [ "1", "0" ] ]));