JSFiddle - React, Tailwind, and code Playground

by evilbloodydemon

JavaScript

function fvar() {
	b = 2;
	if (true) {
  	var a = 1;
    var b;
    b++;
  }
  
  console.log(a, b);
}


function flet() {
	if (true) {
  	let a = 1;
  }
  
  console.log(a);
}

fvar();
flet();