JavaScript Variable
JavaScript Variable are containers for storing data values. The value of a variable can change throughout the program. there are two types of variable:Local variable & global variable. Use the var keyword to declare a variable: Example: JavaScript local variable A local variable will be visible only within a function where it is defined. Function …