What is the purpose of var statement?
Answers
Answered by
0
Answer:
the varr statement declares a variable in programming a variable is a value that can change depending on conditions for on information pass to the program hai pagli a program consists of instruction that tells the computer what to do and data that the program uses when it is running
Answered by
0
Var statement is used to declare a variable.
EXPLANATION:
- Variables are like containers that store information. We declare them using var statement.
- When we create a variable in JavaScript, it is called "declaring" a variable. For example: var ABCName;
- In this case the variable ABCName is empty and has no value. It has been declared using var statement in the JavaScript.
- These variables store the data value which can be changed anytime. A new variable must always have a new name.
- A value is assigned to them using ‘=’. We can do this while we are declaring it or can be used even before using them further in our script.
Similar questions
English,
5 months ago
Math,
5 months ago
Math,
5 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Chemistry,
1 year ago