JavaScript Variables

In this example, x is defined as a variable. Then, x is assigned the value of 6: