Where Data Resides

Data in a script resides in a literal or in a variable. The following example includes variables and literals:

var TestVar = 14;
var aString = "test string";

This code does the following:

  • Saves the following literal value to the TestVar variable:

    14

  • Saves the following literal value to the aString variable:

    test string

After you save a literal value in a variable, you can reference this variable anywhere in the script where you declare the variable.