Advertisements
Advertisements
Question
Write the role of variable in JavaScript.
Short Note
Solution
- Variable is a memory location where value can be stored. A Variable is a symbolic name for a value. Variables are declared with the var keyword in JavaScript. Every variable has a name, called an identifier.
- Every variable has a data type that indicates what kind of data the variable holds. The basic data types in JavaScript are Strings, Numbers, and Booleans.
shaalaa.com
JavaScript Variables
Is there an error in this question or solution?