var x=5; var y=10; var z=x+y; var txt="Hello world";
var variable_name = variable_value;.
Example var x=5;
- Assignment operators (=) to assign values to variables.
- Arithmetic operators ( + * – /) to compute values.
For example, 5 * 10 evaluates to 50.
Expressions can also have variables.
For example, 5*x.
For example, var
keyword tells the variable declaration.