Abhay Srivastav
1 min readDec 1, 2018

--

<script>
var a = 5;
console.log(window.a);
</script>

It logs 5 not undefined as you said. Can you explain ?

--

--