Javascript Variables
A Javascript variable is a container, that is, it is introduced to represent or schematize a memory area or, in other words, a place for storing information.
- Variable Types Javascript:
Javascript includes 4 types of variables:
- number: integer or comma
- string string like "car", "house", "tree"
- Boolean logical value as true or false
To declare a variable it is enough to put the instruction var followed by the name of the variable
Javascript is a dynamic typing language, which means that we do not have to declare the type of the variable on the other side, to concatenate two variables we use the symbol "+":