Important concepts in Javascript
Scope
Scope is a certain region of a program where a defined variable exists & can be accessed.
Different types of scope are -> function scope and block scope.
var is function scope.
function fname()
{
// function scope
}
let & const are block scop...
prathameshsawant.hashnode.dev2 min read