In JavaScript, a variable is a named storage location that is used to hold a value. Variables are used to store data, such as numbers, strings, or objects, and to perform operations on that data.
Here is an example of how to declare and initialize a variable in JavaScript: