Hoisting in JavaScript
Introduction
Let’s see this code, what will be the output?
Console.log(n)
var n=10
The variable n is used before its declaration, if you are coming from any other language then you may think it is an error, but JavaScript is different output shows th...
sumanwebdev.hashnode.dev3 min read
Saleh Mubashar
Web Developer
Nice post! Kindly check out mine too! Would really appreciate it thanks