Section1_let

let

let - blockscope for문 안에서만 유효


var name = "gloval var"

function home() {
  var homevar = "homevar";
  for(let i=0; i<100; i++)
    { }
  console.log(i);
}

home();
Written on August 2, 2022