A variable is a name associated with a value;
we say that the variable stores or contains the value. Variables allow
you to store and manipulate data in your programs. For example, the
following line of JavaScript assigns the value 2 to a variable named i:
i = 2;
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.