what are variables used for in javascript programs
Answers
Answered by
0
In programming, just like in algebra, we use variables in expressions (total = price1 + price2).
Answered by
0
Answer:
Variables are required in any programming language as it supports only a specific data type. They are used to represent the data that is used in the program.
In case of Javascript, variables can be considered to be as containers within which data are placed. These containers can be named and accordingly addressed.
However, it is important to declare a variable before using it for the computer to understand it.
Similar questions
Math,
9 months ago
English,
9 months ago
Social Sciences,
9 months ago
Social Sciences,
1 year ago
Math,
1 year ago