<script> console.log("I am psyched!"); </script>
Variables store data. They are declared using the "var" keyword and assigned a value using the "=" operator:
var foo = 5; foo = "cheese";
In the example above, foo (a much used example variable) is declared and assigned a number. It is then reassigned a piece of text, otherwise known as a string. Variables can also be true or false or be assigned more complex structures.
You will be introduced to control structures that add logic and iteration to a program — the features that will allow your code to do things that humans cannot. And finally we will write our own functions that access the DOM, or Document Object Model. Along the way we'll discuss scope, dynamic types, concatenation. All these words may seem cryptic at first, but I assure you that the concepts they refer to are easily absorbed.