Hoisting in Javascript
Look at the below code and guess its output: console.log(val); var val; If you have not studied hoisting and if you are learning javascript after learning any other programming language like Java or C++ then your guess will be " that the above code ...