Why JavaScript is Like No Other Language: An Inside Look at its Weirdest Features
Avoid Creating Variables Using var
console.log(varVariable) // undefined
var varVariable = 10;
console.log(varVariable) // 10
Variables created with var are hoisted meaning the declaration is moved to the top of their scope before code execution. In...
yogendrakumarvr.hashnode.dev6 min read