Abhay Srivastav·Follow1 min read·Dec 1, 2018--1Share<script> var a = 5; console.log(window.a);</script>It logs 5 not undefined as you said. Can you explain ?