function fbScope() {
  const abc = 'abc';
  const t = false;
  if (t) {
    console.log('inside if block');
    var v = 1;
    const x = 3;
    console.log(v, x, abc); // << 여기서 abc 왜출력되는거임?
  } else {
    const bbb = "bbb"
  }
  console.log(typeof v, typeof x, typeof abc);
}

fbScope();


const랑 let 블록스코프라면서(블록내에서 못나감)


왜 abc에서 "abc" 잘만 출력됨?

함수선언문 안에 있어서 그런거야?