JavaScript Variable and its Scope
JavaScript Variable A JavaScript variable is simply a name of storage location which holds some value and can be changed any time. A JavaScript variable must have a unique name. You can assign a value to a JavaScript variable using equal to (=) operator. A variable is also called identifiers. There are two types of variables …