Source File: code.js

const var_sucks = () => {
  var var_scope = 10;
  let let_scope = 20;

  console.log(`>>> var_sucks before if: var=${var_scope}, let=${let_scope}`);

  if(true) {
    var var_scope = 100;
    let let_scope = 100;
    console.log(`>>> var_sucks inside if: var=${var_scope}, let=${let_scope}`);
  }

  console.log(`>>> var_sucks after if: var=${var_scope}, let=${let_scope}`);
}

var_sucks();