Computer Science, asked by Jghuggy1449, 11 months ago

What is the purpose of var statement?

Answers

Answered by DEVlL
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 shilpa85475
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