JSFiddle - React, Tailwind, and code Playground

by tward

HTML

<script>
var x = 0;
function foo() 
{
 console.log('here 1');
 console.log(x);
 console.log('here 2');
 var x = 1;
}
foo();
</script>