In scripts, you can "store" a value in a variable. There are two types of variables: local and global variables. We'll cover the global ones later in the course. Local script variables can be created using the var command. They're valid only within the script where they're assigned. When the script is fully processed, the variable loses its value.
Local Script Variables
var <NameOfVariable> = <ValueOfVariable>;

Keep in mind:
- You must assign a value in the var statement
- The assigned value defines the data type of the variable
Whatever type of variable you create, you've to give it a name as an identifier, like counter, selectedCountry, myList. Developers typically use specific naming conventions to make it easy for everyone to read the code. If you’re interested in learning more about this topic, refer to the following document and align to a consistent definition with your story developer colleagues: Devopedia - Naming Conventions
Single, Double, and Triple Equals (===) Operators
Single equals (=) are assignment operators. You use them to assign a value to a variable.

Triple equals (===) are comparison operators. If you use triple equal, then both the values and the types are compared.

Double equals (==) are comparison operators. With double equal, the values are compared but the types are not. SAP Analytics Cloud does not support automatic type conversion so do not use double equals in any script.

Writing to the Console
A very common technique to keep track of variable values or script processing is to make use of the browser console. You can write text or variable values into the console using the console.log(); command.

To access the console from the browser you need to open the Developer Tools from the browser toolbar and switch to the Console tab.