Basically Variable declares with var prefix. If you assign values to variables that have not yet been declared, the variables will automatically be declared as global variables.
carname="Volvo";will declare the variables x and carname as global variables (if they don't already exist).
The rule is: If you add a number and a string, the result will be a string.
Comparison and Logical operators are used to test for true or false.