text: //GLOBAL SCOPE
  var a = 1;
  let b = 2;
  const c = 3;
  
  
  // function test(){
  //     var a = 4;
  //     let b = 5;
  //     const c = 6;
  //     console.log('Function scope ', a, b, c);
  
  // }
  
  // test();
  
  //block scope
  // if(true){
  //     var a = 4;
  //     let b = 5;
  //     const c = 6;
  //     console.log('if scope: ',a,b,c)
  // }
  for(var a= 0;a < 10; a++){
      console.log(`loop: ${a}`);
  }
  
  console.log('Global scope ', a, b, c);
  
  //let and const have a block level scope
  //var has a function scope