Science, asked by hemant1765, 1 year ago

what are variables used for in javascript programs

Answers

Answered by prshx1504
0
In programming, just like in algebra, we use variables in expressions (total = price1 + price2).
Answered by orangesquirrel
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